Help to create a faded edge filter

I want to be create a filter to fade out the edges of an
image, however I'm not sure where to start with figuring out if a
pixel is within the edge fade distance. I've got the attached as a
starter, but I'm not sure where to go for the left and bottom
edges.
Any help is greatly appreciated.

You need to pass in the width and height of the image as
parameters and use those. Pixel Bender 1.0 doesn't have the
original size of the input image accessible (in Pixel Bender we
only pass in the parts of the input image that are needed).

Similar Messages

  • How to get online help when creat new filter files in EDS?

    I want to creat some my own filter files in order to get Event report from network management station when some special situations appear.
    I have run /opt/CSCOpx/bineds -filter,and the Named Filter window appears,I select new a file,later select "add Generic events",during this course I tried to get online help with Help Icon, but the messages:"could not run netscape to display help netscape:not found."appears.
    But I have install the netscape in the directory /opt/netscape, why it can't be found?I want to know whether there is some conf file in some place that has named a path name for the netscape diffrent from /opt/netscape.Is ther any such files?Thanks very much!

    Since there has been no response to your post, it appears to be either too complex or too rare an issue for other forum members to assist you. If you don't get a suitable response to your post, you may wish to review our resources at the online Technical Assistance Center (http://www.cisco.com/tac) or speak with a TAC engineer. You can open a TAC case online at http://www.cisco.com/tac/caseopen
    If anyone else in the forum has some advice, please reply to this thread.
    Thank you for posting.

  • How to Create a consistent Gradient w/ Soft Edge & Filter

    Hello, Im using photoshop 6, and Im trying to apply an effect for a banner photo, that will be consistent for other banner photos of the same size.
    I've attached a photo of this.
    As you can see the gradient (which contains the text) starts with a grey color then transitions to white. The right edge that meets the blue sky isnt a hard edge but rather a soft edge.
    Im not sure how to create that soft edge. Someone else had mentioned to use the gradient with colors from grey to white then to transparent to create that soft right edge.  Im not sure how to set that up.
    I used a brush in this case, and as you can see, the line is uneven.
    Also I believe the Filter used here is Ripple or Ocean Ripple.
    I was hoping if someone could walk me through what the correct steps would be to create that effect, so that I can use this consistently for several photos

    Oh, I see, PS 6. The parts here about Fill Layers and Layer Styles won't apply, but the editing method is the same:
    First, open the Gradient Editor by clicking on the Gradient in the Option Bar or the dialog for a Gradient Fill Layer:
    Set up a Gray-to-White Gradient, and add a transparent stop just pas the White stop:
    Enter a name, and click on "New" to save it. You can also save as part of a Layer Style with Gradient Overlay.

  • Verizon Blackberry Internet Service Client (BIS)- How to create an e-mail Filter

    Hello. Thank you in advance for replying to my question. I am trying to create an e-mail filter so that a contact's e-mail messages do not get delivered to my BB and instead just go straight to my regular e-mail account. I understand that you can do this function from the BIS, however when I tried to create an account I received a message that said "please use your device to access the BIS." I did just as the message told me but I did not get the same menu options from my BB as I would have gotten from doing it from the internet. The page only showed a list of my e-mails and an "edit" and "delete" choice for each one. There was no "Filter" button for me to click. I remember a while ago I able to access this page and was able to remove the BB signature (i.e.. "This message is being sent from a BB"), so I know that it was possible to access this page. I do not know why I am not able to accesses it now.               
    If anyone out there has Verizon and knows how to access the BIS, please let me know how. Or if you know how to create an e-mail filter function, please let me know.
    Thank you,
    Fred
    Solved!
    Go to Solution.

    Hi there!
    To log into your BIS account from a PC/browser (not the BB browser), go to this URL:
    https://bis.na.blackberry.com/html?brand=vzw
    Enter your BIS credentials and you will then be in your BIS account screen. From there, use this KB to create the filter you desire:
    KB04558 Add a filter to a BlackBerry Internet Service account
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Im trying to create a fading button with a fading action.

    I can't figure out how to create a fading button with an additional action to it. I'll do my best to lay out how the actions should work: [red = not working]
    Button > roll over> fade> (that part I have down perfectly) click button> button temporarily replaced with text> roll out of text > process repeated in reverse for smooth fading.
    Every time I set up all these actions and get it the way I want, I run into a bunch of problems:
    Text box holder and text can not be over the button. (Where I need them to sit) When they sit over the button it blocks it from doing any of its specified actions. So I'll make the text box and text a hidden item, then they lose their transition and start flickering when they are interacted with.
    This is basically the last piece of my clients new site and I just need to figure this one little thing out. Please help if possible!

    Try to group the elements so they work together.

  • How to create prompt for inline filter?

    HI All. Can anyone plz help me, how to create prompt for inline filter?
    Let me give an examle...
    Suppose I've taken two columns as # of New Invoices and # of Cancelled Invoices
    Now, If I set a date prompt / month prompt, then the "# of cancelled invoices" column will fetch the number of cancelled invoice for that month only, which I have chosen in the prompt. But I want the "# of cancelled invoices" column to fetch data for the month chosen by me in another prompt.
    So, can anyone help me with the sql statement, which will fetch the prompt data (i.e., month / date chosen by the user) automatically and will furnish the result accordingly.
    Thanks.

    To create a column prompt:
    To create a dashboard prompt, use the following sub-procedure.
    Navigate to the Oracle BI Enterprise Edition Home page, locate the global header, hover the mouse pointer over the New menu to access the menu, and select Dashboard Prompt. From the Select Subject Area menu, select the subject area for which you want to create a prompt. The "Definition pane" is displayed.
    Click the New toolbar button in the Definition Pane to access the prompt type selection list. From the list, select Column Prompt. The "Select Column dialog" is displayed.
    Select a column and click OK. The "New Prompt dialog" displays. If your repository is configured for double columns, then ensure that you select the correct display column. For information on double columns, see "Understanding the Double Column Feature".
    The number of columns that you include in a prompt can affect performance. In general, you should limit the number of columns to as few as possible.
    If you are creating a dashboard prompt and want to add or remove related subject areas, then click the Select subject area button in the "Select Column dialog" to display the "Add/Remove Subject Areas dialog".
    To create an inline prompt, use the following sub-procedure.
    Create a new analysis or access an existing analysis for which you want to create a prompt. Click the Prompts tab. The "Definition pane" is displayed.
    Click the New toolbar button in the Definition Pane to access the prompt type selection list. From the list, select Column Prompt. The analysis' selected columns are displayed in the cascading menu that is adjacent to the Column Prompt selection item.
    http://webmastersomesh.com

  • Create slideshows in edge animate

    good afternoon.
    i am building a website for a web design company i work for. we want to be able to showcase the websites we have built for others by having an animation on our sites website design page that rotates through screenshots of all the sites we have built and when you click on the actively displayed screenshot it takes you to the actual website seen in that screenshot.
    so far the only way i know of doing this is with flash which is what we are using now.
    however this means we are actively discriminating against ios users as apple don't provide flash player on ios.
    so we are looking foralternatives and came across edge animate.
    however i have ran into 2 problems with edge animate that i simply cannot resolve.
    1. while edge animate is great at creating more complicated animations it doesnt appear to be capable of doing simple slideshows by which i mean have an image occupy the entire stage for x amount of time then switch to a different image for x amount of time. instead it treats every image as a seperate layer meaning whichever image is at the front is present the entire length of the animation which is useless for the type of project i am trying to create.
    2. edge animate generates a stand alone html file for every project along with all the imae assets and javascript files which while this helps with compatibility in ensuring more browsers can watch the animation it doesnt give me any way to insert the animation into my website design page.
    any ideas where i can find tutorials that will show me how to overcome these limitations?

    Hey Preran,
    With regards to the help you posted on the forum.
    Any advice on how to incoporate the slideshow to deal with different sized images. I don't want the small ones stretched to fit the original large sized photo but rather scaled up to fit as close fit as possible. I don't mind black space in between.
    Thanks,
    Chaminda.
    I started a thread because I missed this post the first time I was going around.
    Edge Animate Slideshow (Unlimited pictures Help)

  • I need help with creating some formulas

    I'm not sure if anyone around here can help me, but I'm trying to create a Numbers document and need some help with creating a formula/function.
    I have a column of amounts and I would like to create a formula which deducts a percentage (11.9%) and puts the result in another column.
    If anyone can help me, it would be greatly appreciated.

    Here is an example that shows one way to do this:
    The original data is in column A.  In column B we will store formulas to adjust the amounts:
    1) select the cell where you want to formula (in this case cell B2)
    2) Type the "=" (equal sign):
    3) click cell A2:
    4) now type the rest of the formula which is: "*(100-11.9)/100"  that is asterisk, then open parenthesis, 100 minus eleven point nine close parenthesis forward slash  one hundred
    The Asterisk is the multiply operator  (times) and the forward slash is the division operator (divide)
    now hit return.  select cell B2 and hover the cursor over the bottom edge of the cell:
    drag the little yellow dot down to "fill" the formula down as needed.

  • Need Help to create new screen for RF Sapconsole

    Hi Guru's
    I'm new on RF (but some years in ABAP) since last week.
    I need help to create new screens for RF (SAPLLMOB).
    Can someone explain me the procedure to create screen (with ABAP code after) or perhaps someone have an exemple (simple or not) ?
    I have to develop 2 new screens with really few time.
    And, another subsidiary question :
    how SAP can transfert information between the flash gun and the screen i have developped.
    Is there some code to add to enable this functionality or it is include in SAPLLMOB on standard fields ????
    It's a new strange world for me today...
    Many thanks to everyone who can explain me
    Alain

    hi,
    I am facing this problem as well. Is there any reference to create the new screen?
    Hope someone can help! Thanks!
    Regards,
    Darren

  • Need help in creating a chart from 3 datasets

    Need help in creating a chart in SSRS from 3 datasets
    Can someone help me in creating a chart from 3 datasets, however datasource is same.

    Thank you Olaf...
    could anyone help me in using union all with the below
     WITH a AS (
    SELECT
    clientid,
    DATEPART(year, row_date) AS 'Year',
    DATEPART(month, row_date) AS 'Month',
        value ,
        CASE metricid WHEN 16 THEN 'FCR' ELSE 'Cases' END AS metric
    FROM XXXXXX AS V
    WHERE metricid IN (16, 11)
    AND row_date BETWEEN '2012-01-01' AND '2014-10-01'
    AND value IS NOT NULL)
    , b AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'Cases',
        metric 
    FROM a
    WHERE metric = 'cases')
    , c AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'FCR',
        metric  
    FROM a
    WHERE metric = 'FCR')
    , d AS (
    SELECT b.YEAR, b.MONTH, c.FCR, b.Cases 
    FROM b INNER JOIN c 
    ON c.clientid = b.clientid
    AND c.[YEAR] = b.[year] 
    AND c.[month] = b.[month]
    WHERE c.fcr <> 0 AND b.cases <> 0
    ,E AS (
    SELECT [Year], [Month], SUM(FCR) AS FCR, SUM(Cases) AS Cases
    FROM d
    GROUP BY [Year], [Month])
    select YEAR, MONTH, 
    CASE MONTH 
    WHEN 1 THEN 'Jan'
    WHEN 2 THEN 'Feb'
    WHEN 3 THEN 'Mar'
    WHEN 4 THEN 'Apr'
    WHEN 5 THEN 'May'
    WHEN 6 THEN 'Jun'
    WHEN 7 THEN 'Jul'
    WHEN 8 THEN 'Aug'
    WHEN 9 THEN 'Sep'
    WHEN 10 THEN 'Oct'
    WHEN 11 THEN 'Nov'
    WHEN 12 THEN 'Dec'
    END AS MonthName
    ,e.FCR AS FCRCases
    ,e.Cases AS TotalCases
    ,CASE 
    WHEN [month] IN (11, 12, 1) THEN 1
    WHEN [month] IN (2, 3, 4) THEN 2
    WHEN [month] IN (5, 6, 7) THEN 3
    WHEN [month] IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    --,CONVERT(DECIMAL(18, 2),(e.FCR/e.Cases)*100) AS FCRRaw
    from e
    order by YEAR, MONTH
    **************2nd query*************
    WITH a AS (
    SELECT
    clientid,
    DATEPART(year, row_date) AS 'Year',
    DATEPART(month, row_date) AS 'Month',
        value, 
        CASE metricid WHEN 56 THEN 'numerator' ELSE 'denominator' END AS metric
    FROM XXXXXXX.[Values] AS V
    WHERE metricid IN (56, 10)
    --WHERE metricid IN (11,16)
    AND row_date BETWEEN '2013-10-01' AND '2014-02-01'
    AND value IS NOT NULL)
    , b AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'numerator',
        metric
    FROM a
    WHERE metric = 'numerator')
    , c AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'denominator',
        metric
    FROM a
    WHERE metric = 'denominator')
    , d AS (
    SELECT b.YEAR, b.MONTH, c.denominator, b.numerator 
    FROM b INNER JOIN c 
    ON c.clientid = b.clientid
    AND c.[YEAR] = b.[year] 
    AND c.[month] = b.[month]
    WHERE c.denominator <> 0 AND b.numerator <> 0
    , e AS (
    SELECT [Year], [Month], SUM(numerator) AS numerator, SUM(denominator) AS denominator
    FROM d
    GROUP BY [Year], [Month]
    SELECT *, 
    CASE 
    WHEN [month] IN (11, 12, 1) THEN 1
    WHEN [month] IN (2, 3, 4) THEN 2
    WHEN [month] IN (5, 6, 7) THEN 3
    WHEN [month] IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    FROM e
    ORDER BY 1,2
    ******************3rd query**************
    WITH a AS (
    SELECT --L.[LocationGroupId],
    -- T.locationid,
    -- T.AccountId,
    TR.datestamp,
    /*Convert(NVARCHAR, DatePArt(year, TR.datestamp)) + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01'*/ 
    TR.Period AS ValueDate,
    CASE WHEN TR.TargetResultState = 0 THEN 0 WHEN TR.TargetResultState = 1 THEN 1 WHEN TR.TargetResultState = 2 THEN 1 ELSE 0 END AS Met,
    CASE WHEN CONVERT(DATE, Convert(NVARCHAR, DatePArt(year, TR.datestamp)) + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01') > T.Startdate AND CONVERT(DATE, Convert(NVARCHAR, DatePArt(year, TR.datestamp))
    + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01') < T.Enddate THEN 1 ELSE 0 END AS ActiveTarget
    FROM XXXXXX AS TR
    INNER JOIN dbo.Target T ON TR.TargetID = T.ID
    --INNER JOIN dbo.Location L ON T.Locationid = L.Id
    WHERE --locationid <> - 1 AND 
    TR.Period IN ('201306', '201307', '201308', '201309', '201310', '201311', '201312', '201401'))
    select ValueDate, SUM(Met) AS Met, Count(ActiveTarget) AS ActiveTargets,
    right(ValueDate,2) as Month
    ,left(ValueDate,4) as Year
    ,CASE 
    WHEN right(ValueDate,2) IN (11, 12, 1) THEN 1
    WHEN right(ValueDate,2) IN (2, 3, 4) THEN 2
    WHEN right(ValueDate,2) IN (5, 6, 7) THEN 3
    WHEN right(ValueDate,2) IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    from a
    group by ValueDate
    order by ValueDate

  • Need help in creating a 'Generic txt log' monitor

    Hi
    We require some help in creating a 'Generic txt log' monitor.
    In a txt-log a system is writing log-entries of a job.
    When the job is running successfully, the entries is like this:
    First line: CRM VISMA Import - Start of job execution
    Second line: CRM VISMA Import - Job execution finished
    When the job is NOT running successfully, the entries are like:
    First line: CRM VISMA Import - Start of job execution
    Second line <this could be anything>
    So, how to we create a monitor that trigger an alert if
    First line = "CRM VISMA Import - Start of job execution"
    and second line is NOT "CRM VISMA Import - Job execution finished"
    And closing the alert if the entries are once again gets:
    First line: CRM VISMA Import - Start of job execution
    Second line: CRM VISMA Import - Job execution finished
    Thanks in advance
    /Peter

    You may consider using script monitor, below is the coding of script section:
    Assumption: the file is stored in c:\temp\AppLog.txx. You should modify the file path for your own situation
    Dim oAPI, oBag
    dim strComputer, objWMIService, PerfProcess,Perf, PerfPro
    Dim PerfMems,PerfMem,Mem
    Set oAPI=CreateObect("MOM.ScriptAPI")
    Set oBag=oAPI.CreatePropertyBag()
    Set objFileToRead = CreateObject("Scripting.FileSystemObject").OpenTextFile("C:\temp\AppLog.txt",1)
    Dim strLine,PreLine
    Dim jobFail
    JobFail=false
    do while not objFileToRead.AtEndOfStream
     strLine = objFileToRead.ReadLine()
     if PreLine<>"" then
                if strLine<>"CRM VISMA Import - Job execution finished" then
                   JobFail=true
                else
                   JobFail=false
                end if
                PreLine=""
             end if
     if strLine="CRM VISMA Import - Start of job execution" then
        PreLine=strLine
     end if
    loop
    objFileToRead.Close
    Set objFileToRead = Nothing
    If JobFail then
     Call oBag.AddValue("JobFail", "Yes")
    else
     Call oBag.AddValue("JobFail", "NO")
    end if
    Call OAPI.Reten(oBag)
    Roger

  • Need help to create report with jpeg/gif image

    Hello,
    I need help with creating a form with a special jpeg/gif seal. I never done this Java. Until now, I created all forms with ansi C++ with HP escape characters to draw lines, boxs, and text. This form will contain boxes which is populated with database information read from a text file.
    Since this form contains a special seal on the upper right, I don't think it can be done with old fashion ansi C++. How can I create a form with Java and create it as a simple exe to just print the form to a specified printer.
    Thanks,
    John

    Hi,
    I am creating a form with boxes (lines and text). What is special about this form is that it has an image jpeg or gif at the top right corner. Is is a state department seal. Up to this form, I had used ansi C++ and print out escape HP character to print out the lines, boxes, and text. I have no idea how to print out the image. I am new to JAVA and only 1 class in it. Is there sample code out there to create this type of form with the image? I need a starting point.
    Thanks,
    John

  • Need help to create SharePoint 2013 Designer workflow

    Hi TechNet Community Team,
    I've one list "Purchase Order" where I'm storing the data for purchase order details below are
    the fields.
    List Name = Purchase Order
    Order No, Order Date, Part No, Part Qty, Delivery Date, Delivery Qty, Balance Qty.
    Now in above list I'm storing the Purchase order details to check Order Qty and Balance Qty for every part
    no and this list is working fine.
    Now my requirement is to create one more list to issue the Part No from available Balance Qty in above List "Purchase Order".
    So I thought to create new list with below details (Please suggest me if you have other idea also I can use
    only SharePoint OutofBox feature or SharePoint Designer 2013):-
    List Name = "Issue Order"
    Issue No, Part No, Balance Qty, Issue Qty, Issue Date, Remaining Balance Qty OR Stock Qty
    So in List Name "Issue Order" once user will select "Part No" the "Balance Qty" will show the available Qty (from Purchase Order
    List). And once he enter Qty in "Issue Qty" column it will show the remaining Qty in "Remaining Balance Qty OR Stock Qty" column. 
    Also "Remaining Balance Qty OR Stock Qty" will get update in "Balance Qty" column in first list "Purchase Order" list so next time
    when user will issue the Qty from "Issue Order" he will get the correct Qty for Part No.
    Need your help to create workflow for List "Issue Order" so user can issue the items from this list
    and balance qty will update accordingly in List Name = Purchase Order. So next time when user will issue the "Part No" he will get correct quantity.

    Hi,
    For the Point# 1, per my understanding, there are two columns in the list2, both columns are getting values from list1. In List2, when user select a value for the
    “Part No”, you want the “Balance Qty” column to be populated automatically.
    As there is no such OOTB feature can meet this requirement, custom code using JavaScript would be required.
    The two similar demos below would be helpful:
    http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPCascadeDropdowns
    http://www.codeproject.com/Tips/758909/Two-Level-Cascading-Drop-Down-in-SharePoint-using
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • I need help with Creating Key Pairs

    Hello,
    I need help with Creating Key Pairs, I generate key pais with aba provider, but the keys generated are not base 64.
    the class is :
    import java.io.*;
    import java.math.BigInteger;
    import java.security.*;
    import java.security.spec.*;
    import java.security.interfaces.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import au.net.aba.crypto.provider.ABAProvider;
    class CreateKeyPairs {
    private static KeyPair keyPair;
    private static KeyPairGenerator pairGenerator;
    private static PrivateKey privateKey;
    private static PublicKey publicKey;
    public static void main(String[] args) throws Exception {
    if (args.length != 2) {
    System.out.println("Usage: java CreateKeyParis public_key_file_name privete_key_file_name");
    return;
    createKeys();
    saveKey(args[0],publicKey);
    saveKey(args[1],privateKey);
    private static void createKeys() throws Exception {
    Security.addProvider(new ABAProvider());
    pairGenerator = KeyPairGenerator.getInstance("RSA","ABA");
    pairGenerator.initialize(1024, new SecureRandom());
    keyPair = pairGenerator.generateKeyPair();
    privateKey = keyPair.getPrivate();
    publicKey = keyPair.getPublic();
    private synchronized static void saveKey(String filename,PrivateKey key) throws Exception {
    ObjectOutputStream out= new ObjectOutputStream(new FileOutputStream(filename));
    out.writeObject(key);
    out.close();
    private synchronized static void saveKey(String filename,PublicKey key) throws Exception {
    ObjectOutputStream out= new ObjectOutputStream( new FileOutputStream(filename));
    out.writeObject(key);
    out.close();
    the public key is:
    �� sr com.sun.rsajca.JSA_RSAPublicKeyrC��� xr com.sun.rsajca.JS_PublicKey~5< ~��% L thePublicKeyt Lcom/sun/rsasign/p;xpsr com.sun.rsasign.anm����9�[ [ at [B[ bq ~ xr com.sun.rsasign.p��(!g�� L at Ljava/lang/String;[ bt [Ljava/lang/String;xr com.sun.rsasign.c�"dyU�|  xpt Javaur [Ljava.lang.String;��V��{G  xp   q ~ ur [B���T�  xp   ��ccR}o���[!#I����lo������
    ����^"`8�|���Z>������&
    d ����"B��
    ^5���a����jw9�����D���D�)�*3/h��7�|��I�d�$�4f�8_�|���yuq ~
    How i can generated the key pairs in base 64 or binary????
    Thanxs for help me
    Luis Navarro Nu�ez
    Santiago.
    Chile.
    South America.

    I don't use ABA but BouncyCastle
    this could help you :
    try
    java.security.Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    java.security.KeyPairGenerator kg = java.security.KeyPairGenerator.getInstance("RSA","BC");
    java.security.KeyPair kp = kg.generateKeyPair();
    java.security.Key pub = kp.getPublic();
    java.security.Key pri = kp.getPrivate();
    System.out.println("pub: " + pub);
    System.out.println("pri: " + pri);
    byte[] pub_e = pub.getEncoded();
    byte[] pri_e = pri.getEncoded();
    java.io.PrintWriter o;
    java.io.DataInputStream i;
    java.io.File f;
    o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pub64"));
    o.println(new sun.misc.BASE64Encoder().encode(pub_e));
    o.close();
    o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pri64"));
    o.println(new sun.misc.BASE64Encoder().encode(pri_e));
    o.close();
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.FileReader("d:/pub64"));
    StringBuffer keyBase64 = new StringBuffer();
    String line = br.readLine ();
    while(line != null)
    keyBase64.append (line);
    line = br.readLine ();
    byte [] pubBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
    br = new java.io.BufferedReader(new java.io.FileReader("d:/pri64"));
    keyBase64 = new StringBuffer();
    line = br.readLine ();
    while(line != null)
    keyBase64.append (line);
    line = br.readLine ();
    byte [] priBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
    java.security.KeyFactory kf = java.security.KeyFactory.getInstance("RSA","BC");
    java.security.Key pubKey = kf.generatePublic(new java.security.spec.X509EncodedKeySpec(pubBytes));
    System.out.println("pub: " + pubKey);
    java.security.Key priKey = kf.generatePrivate(new java.security.spec.PKCS8EncodedKeySpec(priBytes));
    System.out.println("pri: " + priKey);
    catch(Exception e)
    e.printStackTrace ();
    }

  • Looking for a Apple developer to help me create an application

    Looking for a Apple developer to help me create an application

    Sure, but I meant he/she could sign up, and then see who is asking questions in the right sort of market area and potentially make contact that way ?

Maybe you are looking for

  • Data below black level 0 in h264 mp4 files.

    I'm a little confused about black and white levels in video. I have two questions. If you bare with me for a second I can demonstrate what I mean. I created gradient with values from 0,0,0 to 255,255,255 in Photoshop and saved it as sRGB jpg file. I

  • So in this updated version of Pages  under share all the options are not there

    In the previous version of Pages, you could always click on share and then click on email and they would give you option of PDF, word, pages, etc.  Now there  is not an email option.  I have to save it as a word document and then find it under finder

  • File Sharing with PCs over wifi

    Hello, I have just set up a mac mini as a home server, primarily for file sharing. It works fine when the mac is plugged into the router by ethernet, my two PCs can connect to the mac's local IP address and can access the drives, but they cannot acce

  • Missing palette - Config Files

    The Config Files are missing from the subpalette in LV 2014-64 bit for Mac OS.  I am not sure whether they were ever there. The files are in the expected locations. The palette is OK in the 32-bit version. I have installed a bunch of stuff with VIPM

  • Want to learn SAP BASIS

    Hi all, I am new to SAP BASIS.i want to learn sap basis.i have knowlag of hardware and networking.i have complated my p.g in M.H.R.M