ProgrammingSponsored by Flatiron School

52K

Solutions

40K

Contributors

Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.

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

Sign up to Post

Product I would like to understand how it works buy looking at the content then creating it anew with a different language since it can no longer be purchased.I have a file for a small program called "SQL Grep" it was designed by a company called www.Gatherbirdsoftware.com the product and company seem to no longer be in business. Last I heard was around 2010-2011. The file I have might be helpful with the design of the product I want to make a similar tool in another language. Python & Java. I do not think it was written in either of those languages.

My questions are:
1. Is it legal to look at someone else's code "if I can even open it...?"
2. And determine how the flow of the code works with the developers language. I do this because I am learning to develop now.
3. The intention is to  build my own product to do the same thing with a newer different language?
4. The product is no longer sold and the site down with no response from the owners? I have sincerely tried.

Originally the products on the site were sold to benefit a childrens hospital. I am doing this for a charity as well. If of course I can do this in the way I hope.
Please advise. Product I would like to understand how it works buy looking at the content then creating it anew with a different language since it can no longer be purchased.
0
What Kind of Coding Program is Right for You?
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

How to remove the unicode characters from csv file using Python 3?
0
Example.xlsxHi,

i am trying for vba code for below criteria,

1. in sheet1 i am filtering for column D for dates i want and copy mail id of column H
2. goto sheet 2 and find that mail id in column D, now according to the column C in sheet1 confirmed and cancelled i would like to enter the registration as yes if confirmed
    and for cancelled as cancelled in sheet2
3.update the offering date(column F-sheet2) as event start date(column B-sheet1) for yes
4.update comments only for cancelled as "Cancelled on 10/04/2018(column E date-sheet1) from the 16/04/2018(column B-sheet1) offering"

Please suggest.

Thank you in advance.
0
what is the best server equipped to host a full fledged teenpatti game with unlimited userbase.
please advice with configs. I am new to this
0
Creating a business with programmers who are "independent contractors" (not employees, per the IRS).

My task or inquiry is to find a way to have my little programming business and to see if it is legally possible to have programmers who are independent contractors, (not employees),
who perform their labor on my computer system that would be a VPS on the internet that is paid for by my company.

The reason that I am asking this question is because the laws say that a company that provides the capital resources of a project is by definition hiring employees not independent contractors, but then the use of an internet VPS raises the question if such an arrangement is legally correct to label the employees as "independent contractors" since it is in a "grey" area of the law that pertains to the software business.

Somebody please explain to me what my best plan of action with regards to this is. I am trying to produce the software at an economical price without short changing any substantial requirement of the law.
0
When to use Git Merge and When to use Git Rebase ?

Practical Use cases or examples when Git Merge will be useful and Git rebase will be useful.
0
I have been asked to stand up a weighted search appliance for a company.  The decision was to use SOLR to create the search tool so they can use the associated REST API for searches and recommendations.

I'm am still beginning in SOLR and have to ask a basic architecture question.  I have a table with 220 elements, 130 Million record strong.  I grow 5 million a year.

Does this become a Hadoop solution?  or can this still be done with a single SOLR engine?  I need to know which direction to start with so I do this right

Thanks much.
0
Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as Quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as Quote.doc. Write an application that displays the sizes of the two files, as well as the ratio of the two file sizes to each other. Save the file as FileStatistics2.java
0
we have a binary tree in scheme like this  :      (node (leaf 1) (node (leaf 2) (leaf 3)))
we want to calculate sum of  number in leaves

(display (sum '(node (leaf 1) (node (leaf 2) (leaf 3)))))
result => 6
0
I'm using EncryptedXML to decrypt a SOAP message.  I'm loading the certificate manually and trying to decrypt the message.  But I'm getting the following error:

Unable to retrieve the decryption key.

Open in new window


Here is my code:
stream.Position = 0;
var doc = new XmlDocument();
doc.PreserveWhitespace = true;
doc.Load(stream);

var clientCertEnc = new X509Certificate2(@"C:\certificates\xxxxxt.pfx", "xxxxxx");
var privateKeyRSAA = (RSACryptoServiceProvider)clientCertEnc.PrivateKey;

var exml = new EncryptedXml(doc);
exml.AddKeyNameMapping("KeyIdentifier", privateKeyRSAA);
exml.DecryptDocument();

Open in new window


Here is my xml:
<s:Envelope 
        xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
        xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <s:Header>
            <VsDebuggerCausalityData 
                xmlns="http://schemas.microsoft.com/vstudio/diagnostics/servicemodelsink">uIDPo4tYpt6X40FEk+VSAe5mc8MAAAAAP497cBuXfk+uFIOY80O0iuLtIW56q7hLktgVYPhbnHMACQAA
            </VsDebuggerCausalityData>
            <o:Security s:mustUnderstand="1" 
                xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <o:BinarySecurityToken u:Id="uuid-10490fb0-8ee0-4a4c-a8db-77242c9a3b7f-2" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" 

Open in new window

0
Get your problem seen by more experts
LVL 12
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Hi Sirs,

I have written the following code to use is it for frequently paste special/value method of class has failed.

 
Dim wbsurc As Workbook, wbdest As Workbook, flpath As String

'to Open both workbooks: 

Set wbsurc = Workbooks.Open(" C:\1. D Drive\2 - Wrokshop\2 - Working\Vendor List\&Master AML&.xlsb")
Set wbdest = Workbooks.Open(" C:\1. D Drive\2 - Wrokshop\2 - Working\Vendor List\"".xlsb")

'flpath = wbsurc.Path & "\"

'Now, copy from source book:
wbsurc.Sheets("Vend list").Range("A1:C6880").Copy

'Now, paste to target workbook/sheet:

wbdest.Sheets("vend").Range("A1").PasteSpecial

'Close x:
wbsurc.Close
End Sub

Open in new window


Plz help me to fix this plz

thx
M Zahid
0
I know very little about vba. But am trying to tweak a macro for visio.

I want to tweak text but can't find anything on this:
 
            ' set font size and color, text alignment, border, fill and shadow
            .Cells("Char.Size").Formula = "10 pt"
            .Cells("Char.Color").Formula = 0     ' black
            .Cells("Para.HorzAlign") = 0         ' left justify
            .Cells("LinePattern").Formula = 0    ' none
            .Cells("FillPattern").Formula = 0    ' none
            .Cells("ShdwPattern").Formula = 0    ' none

1) Is there a table  that lists what numbers to use to change HorizAlign to get centered?

2) What if I wanted to bold the text?

3) there's a line after these for text (it's a table of contents):   .Text = arrPages(i, 1) & vbTab & CInt(arrPages(i, 2))

I'd love for the space between the page name and page number to be dotted  like:   Licenses.. . . . . . . .3

Do you know how I could get that?

Any idea why I can't find much about this on the web? I was googling cells syntax vba and pasting these lines into google. Didn't come up with anything.

Thanks!
0
Is it possible to load .Net on a Mac?

If so what is the URL address to download the latest version of .Net for Mac OS X?
0
We are sending Base 64 String to the server in one use case.

We are sending actual image as stream to the server in another use case.

We need to have a unique API in the back-end to handle both of them.

example,
saving the base 64 string in the database. on retrieve, changing the base 64 to actual image in the front end
saving the image in a folder and path in the database. on retrieve, sending the image stream. converting the image stream to base 64 string in the front end to populate.

What would be the generic way to handle both of them in a single method?
0
Hello Experts,
How to set show windows stacked OR show windows side by side in win 7 from batch script ?
0
Hi,

I'm in the process of developing an eBay application in Microsoft Access 2016. So far my project has been fine and the API calls I have made have been successful but I have now come to a stumbling block that I need some help with.

The API calls I have used so far are all for single listings so this is easy and I just pass the XML through an HTTP request. I want to make this much more efficient and use eBay's File Transfer API where I can send more than 1 call at a time but I'm really struggling on trying to understand how to build the call.

The data has to be sent as Binary Base64 which I have a converter to do this. I can build the XML that needs to be sent but I just don't understand how to send the XML from a string as apposed to a physical file.

I've read loads on the internet about having to create it as a multipart request with boundaries but really not sure how to start building that. I can provide code if need be so you can see where I am at.

I hope this makes sense.
0
I am introducing myself as a beginner in Java.I have just made a program.My idea is to get an output depending on the ranges.So here is the program:
import java.util.Scanner;

class  Vedant
{
    public static void main(String[] args)
        {
            Scanner inputa=new Scanner(System.in);
            int b=inputa.nextInt();
            if(b > 0 && b < 20);
            int a=5;
            {
                System.out.println("Answer ="+a);
            }
            if(b<0)
            {
                System.out.println("Invalid");
        }
}
}

Open in new window


The code is perfect.I had doubts in it which were solved by this site.So what I want to do is get an output as 5 if the input is between 1-20.here is an example what I want to do:Suppose today I input it a number like 7 the answer should be 5.The next day I will input another no. like 10 the input will be 5 too.I want it to save and add the numbers automatically.So the first and second input's answer is 5 so I want the program to add up those two numbers automatically without editing the file everyday.Is there any way?I am just a beginner and don't understand much of it.

Also I want to design a statement like to assign multiple inputs as new scanners.Like Scanner a,b,c=new Scanner(System.in);
0
I'm trying to figure out why I can't seem to decrypt an encrypted key from .NET with a X509 Certificate.  

.NET Code
encryptedKey = "jW3VDsUZWIdzfZ1bPN3iKI2Pf9u22kUax0DFnF3A9H+nvcBQuVC2efw1FYGm5/AvnN27kXqA4PyCqcQLp/tguVqHtzdR7mJtkTCyY8TUoAej2Mqzv2uiEKULB/8rlPDl2DOkSMGJqieenAG/7gZjWhlU0eYrlcMi5dtAnPFTfy+LvtJ6bbGEDgy4FhoT49T6sO0kjBJHp5YI0p/CeEuc+WMT/BMGG1YuDPswltj0VzeaE3KbHSLvJPjGCQ3U0YkUWm8h9zM22S/mRvfMhEu1aRdQpojGUiSLKUJyotNu8fRulKeB1TVuE7AlDGrbAUsRtU+y6PdLMcEHW+BRq5Uouw==";

var encryptedKeyByte = Convert.FromBase64String(encryptedKey);

var clientCert = new X509Certificate2(@"C:\certificates\xxxxx.pfx", "xxxx");
var rsa = (RSACryptoServiceProvider)clientCert.PrivateKey;
byte[] key = rsa.Decrypt(encryptedKeyByte, false);

Open in new window


The error I get when I try to run the last line of the code rsa.Decrypt(encryptedKeyByte, false)
The parameter is incorrect.


In SOAP UI the decryption works where I use the same certificate.  I just had to convert the file pfx to a jks file to get it working in SOAP UI.  But other than that the settings look the same to me.
Here is a screen shot of the SOAP UI settings.  I'm guessing the Signature Keystore in the SOAP UI seetings is not used for the decryption process.  The Decrypt Keystore settings in SOAP UI is the one I'm using in .NET.  Only in .NET its a pfx file.  
SOAP UI Settings
I also imported the certificate to my local box to see some of the details.  Here is what I see:
Certificate seen in MMCcertificate_properties_in_mmc_2.pngCertificate seen in MMC
Please let me know if you need me to provide any other information or need me to test something out.  Thanks in advance for your help.
0
HI,

i am trying  to filter for current date,yesterday date and day before yesterday date with the help of vba code, but it is not working

Date1 = Format(Date - 2, "dd/mm/yyyy")
    Date2 = Format(Date - 1, "dd/mm/yyyy")
    Date3 = Format(Date, "dd/mm/yyyy")
    ActiveSheet.Range("$A:$M").AutoFilter Field:=5, Operator:= _
        xlFilterValues, Criteria2:=Array(2, Date1, 2, Date2, 2, Date3)

please suggest.
0
The IT Degree for Career Advancement
The IT Degree for Career Advancement

Earn your B.S. in Network Operations and Security and become a network and IT security expert. This WGU degree program curriculum was designed with tech-savvy, self-motivated students in mind – allowing you to use your technical expertise, to address real-world business problems.

hi
please can you help me
for sim808
i used it to send longitude and latitude for ulr (https),
but on arduino's serial monitor appears that
AT+CGPSINF=0
and the value of latitude and longitude =0
where is the wrong ?
is in the code or device
thanks in advanced
0
Hi,
I was making a spring web application. Where there are lot of handlers for GET request etc.
One thing came to my mind -
Suppose I make a GET request from my chrome browser from a particular tab.
And then in the response i add some values which gets back to this same chrome tab and machine.
How exactly does that happen.
How does a response object gets linked to a particular tab in a chrome broswer.

Also is it possible to send a response object without receiving a request object from spring to a particular machine and application.
I guess it should not be possible... But what makes it impossible.
Thanks
0
How much effort do you Experts think should go into defensively 'protecting' a text input field (which will be used to obtain key search terms for a text search) from (possibly) irrelevant input from the operator, such as too many space characters, punctuation and other tokens which might not be helpful to an effective search strategy ? I'm relatively ok with implementing methods that are considered helpful, so this is not a request for coding assistance, but rather about approach and real-life search term management and oversight. (I suppose another way of putting the same point it that I wish to avoid second-guessing the inputter whose attempts may well be valid, but look odd in plain discrete standalone terms. Thanks for any suggestions along these lines.
0
I want to show my tasks in lists based on priority based on the Eisenhower matrix.
A sourced a spreadsheet online which did this using macros.  But its problematic.
I have attached the file.
Can someone help improve.
0
checked exception



public class ThrowEx {

      public static void main(String[] args) {
            
            try{
            throw new Exception("file not there");
            }
            catch(Exception e){
                  
            }

      }

}



why i ned to have try catch for above example.

If i skip i am getting compilation error


https://www.google.com/search?q=java+exception+checked&safe=active&rlz=1C1GGRV_enUS765US765&source=lnms&tbm=isch&sa=X&ved=0ahUKEwi_7qLdjLjaAhWDylMKHfzxDigQ_AUICigB&biw=1280&bih=615#imgdii=dKyeLgDJI-TIrM:&imgrc=Xm7qPed58fGj2M:

Exception could be Run time(unchecked which does not need explicit try catch like indexoutofbound, arthematic) , unchecked(which needs explicit try catch like IOException)
as well right?

please advise
0
Class Parent{
start(){}
}
Class Child extends Parent{
start(){
//override in child
}
processChildMethod(){//not overriden by parent method
}

}

Parent p= new Child();


Child c=(Child)p// why we do like this

c.processChildMethod();

my quwstion is  why we downcase like this

Child c=(Child)p


Child ch=new Child();
ch.processChildMethod()
above is enough right?
please advisse
0

ProgrammingSponsored by Flatiron School

52K

Solutions

40K

Contributors

Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.