[Discuss] Custom array works like PHP array

So far, i only tested it with string object and i hope it also work with other object.
Please give me any suggestion or inform me if have any error.
class ObjArray
{   protected Object key[];
    protected Object field[][];
    public ObjArray(Object k[],Object f[][]){   reset(k,f); }
    public void reset(Object k[],Object f[][])
    {   if(k.length<f.length)throw new ArrayIndexOutOfBoundsException();
        key=k;
        field=f;
    public Object[] getKey(){   return key; }
    public Object[] getField(int k){    return field[k];    }
    public Object[] getField(Object k){   return field[getIndex(k)];    }
    public Object getName(int k){   return key[k];  }
    public int getIndex(Object k)
    {   for(int i=0;i<key.length;i++) if(k==key) return i;
throw new ArrayIndexOutOfBoundsException(); //It should be something to do with the key key.
public Object getValue(int k,int f){    return field[k][f]; }
public Object getValue(Object k,int f){ return field[getIndex(k)][f]; }
public void push(Object k[],Object f[][])
{   if(k!=null)
{   Object[] temp=key;
key=null;
key=new Object[temp.length+k.length];
for(int i=0;i<temp.length;i++) key[i]=temp[i];
int length=temp.length;
for(int i=0;i<k.length;i++) key[length++]=k[i];
temp=null;
if(f!=null)
{   int length=field.length+f.length;
if(key.length<length)throw new ArrayIndexOutOfBoundsException();
Object[][] temp=field;
field=null;
field=new Object[length][];
for(int i=0;i<temp.length;i++)
{   length=temp[i].length;
field[i]=new Object[length];
for(int j=0;j<length;j++) field[i][j]=temp[i][j];
length=temp.length;
for(int i=0;i<f.length;i++)
{   field[length]=new Object[f[i].length];
for(int j=0;j<f[i].length;j++) field[length][j]=f[i][j];
length++;
temp=null;
public void dump()
{   for(int i=0;i<key.length;i++)
{   System.out.println(key[i]+"=>");
if(i+1>field.length) System.out.println();
else for(int j=0;j<field[i].length;j++) System.out.println(" "+field[i][j]);
public static void main(String[] args)
{   String[] key={"Name","Age","Location","Interest"};
String[][] field=
{   {"Max"},
{"21"},
{"Net surfing","Gaming","Learning"},
String[] key2={"Gender","Email","Height","status"};
String[][] field2=
{"[email protected]","[email protected]","[email protected]"},
{"180"},
     ObjArray a=new ObjArray(key,field);
     a.dump();
     System.out.println();
/*output
Name=>
     Max
Age=>
     21
Location=>
Interest=>
     Net surfing
     Gaming
     Learning
     a.push(key2,field2);
     a.dump();
     System.out.println();
/*output
Name=>
Max
Age=>
21
Location=>
Interest=>
Net surfing
Gaming
Learning
Gender=>
Email=>
[email protected]
[email protected]
[email protected]
Height=>
180
status=>
     a.reset(key,field);
     a.dump();
     System.out.println();
/*output
Name=>
Max
Age=>
21
Location=>
Interest=>
Net surfing
Gaming
Learning
     Object[] k=a.getKey();
     for(int i=0;i<k.length;i++) System.out.println(k[i]);
/*ouput
Name
Age
Location
Interest
     Object[] f=a.getField(3);
     for(int i=0;i<f.length;i++) System.out.println(f[i]);
/*output
Net surfing
Gaming
Learning
     Object[] f2=a.getField("Interest");
     for(int i=0;i<f2.length;i++) System.out.println(f2[i]);
/*output
Net surfing
Gaming
Learning
     System.out.println("getName(3): "+a.getName(3));
//getName(3): Interest
     System.out.println("getIndex(\"Interest\"): "+a.getIndex("Interest"));
//getIndex("Interest"): 3
     System.out.println("getValue(3,1): "+a.getValue(3,1));
//getValue(3,1): Gaming
     System.out.println("getValue(\"Interest\",1): "+a.getValue("Interest",1));
getValue("Interest",1): Gaming
If it works as good as expected, i will add  few method(pop,remove,insert,shift,replace...)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

>
Almost. LinkedHashMap is an associative array that remembers the order of insertion. You can't however directly access it's n-th element.
And if the value associated with any given key is a list, then it can hold multiple values.
But: I don't really understand the advantage of being able to access the elements with both a key and an index. It seems pretty fragile to me.

Similar Messages

  • Customer Control in screen painter in Module pool - work like container?

    Customer Control option in screen painter in Module pool - work like container?
    is it true? How?
    Is like any work area or what?
    what is the excat use of that option?
    regards.

    Hello,
    In screen painter ,custom control is used to define the control area on the screen.Just click on that and make your own container area.When you create an ALV grid or TEXT EDITOR or any other control,it will get attached to the screen in that area through the custom container.
    Name the container area as say '<b>CONTAINER</b>'.(in capitals.)
    When you actually create the custom conatiner programatically,you should give the container area name.ie.
    Data : cont type ref to cl_gui_custom_container.
    Create object cont
    exporting
    parent = '<b>CONTAINER</b>'.
    Now,this container that you created-cont is attached to the screen in the area defined by CONTAINER.
    Regards,
    Beejal
    **Reward if this helps

  • I have powerpoint for Mac on my imac.  I can't seem to get the active text box function to work like it did on my PC.  How can I insert an active textbox into a presentation that will allow me to type while presenting?

    I have powerpoint for Mac on my imac.  I can't seem to get the active text box function to work like it did on my PC.  How can I insert an active textbox into a presentation that will allow me to type while presenting?

    I've gotten a little further on this. The dynamic select is
    working fine. It's the "a href" code that isn't. I'm wondering if
    someone can look at this line and tell me if it's okay to build the
    query string this way. The storeid comes through fine but I'm still
    not getting the employeeid value to pass. Here's line that's not
    working:
    td><a href="registerStoreCust.php?storeid=<?php echo
    $row_storeRS['storeid']; echo "&employeeid="; echo
    $_GET['employeeLM']; ?>">Register
    Customer</a></td>

  • How to resize a custom tree node like you would a JFrame window?

    Hello,
    I am trying to resize a custom tree node like you would a JFrame window.
    As with a JFrame, when your mouse crosses the Border, the cursor should change and you are able to drag the edge to resize the node.
    However, I am faced with a problem. Border cannot detect this and I dont want to use a mouse motion listener (with a large number of nodes, I fear it will be inefficient, calculating every node's position constantly).
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Insets;
    import java.util.EventObject;
    import javax.swing.BorderFactory;
    import javax.swing.Box;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellEditor;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeSelectionModel;
    public class ResizeNode extends JPanel {
           AnilTreeCellRenderer2 atcr;
           AnilTreeCellEditor2 atce;
           DefaultTreeModel treeModel;
           JTree tree;
           DefaultMutableTreeNode markedNode = null;
         public ResizeNode() {
                super(new BorderLayout());
                   treeModel = new DefaultTreeModel(null);
                   tree = new JTree(treeModel);          
                  tree.setEditable(true);
                   tree.getSelectionModel().setSelectionMode(
                             TreeSelectionModel.SINGLE_TREE_SELECTION);
                   tree.setShowsRootHandles(true);
                  tree.setCellRenderer(atcr = new AnilTreeCellRenderer2());
                  tree.setCellEditor(atce = new AnilTreeCellEditor2(tree, atcr));
                   JScrollPane scrollPane = new JScrollPane(tree);
                   add(scrollPane,BorderLayout.CENTER);
         public void setRootNode(DefaultMutableTreeNode node) {
              treeModel.setRoot(node);
              treeModel.reload();
           public static void main(String[] args){
                ResizeNode tb = new ResizeNode();
                tb.setPreferredSize(new Dimension(400,200));
                  JFrame frame = new JFrame("ResizeNode");
                  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                  frame.setContentPane(tb);
                  frame.setSize(400, 200);
                  frame.pack();
                  frame.setVisible(true);
                  tb.populate();
         private void populate() {
              TextAreaNode2 r = new TextAreaNode2(this);
               setRootNode(r);
               TextAreaNode2 a = new TextAreaNode2(this);
               treeModel.insertNodeInto(a, r, r.getChildCount());          
    class AnilTreeCellRenderer2 extends DefaultTreeCellRenderer{
    TreeBasic panel;
    DefaultMutableTreeNode currentNode;
      public AnilTreeCellRenderer2() {
         super();
    public Component getTreeCellRendererComponent
       (JTree tree, Object value, boolean selected, boolean expanded,
       boolean leaf, int row, boolean hasFocus){
         TextAreaNode2 currentNode = (TextAreaNode2)value;
         NodeGUI2 gNode = (NodeGUI2) currentNode.gNode;
        return gNode.box;
    class AnilTreeCellEditor2 extends DefaultTreeCellEditor{
      DefaultTreeCellRenderer rend;
      public AnilTreeCellEditor2(JTree tree, DefaultTreeCellRenderer r){
        super(tree, r);
        rend = r;
      public Component getTreeCellEditorComponent(JTree tree, Object value,
       boolean isSelected, boolean expanded, boolean leaf, int row){
        return rend.getTreeCellRendererComponent(tree, value, isSelected, expanded,
         leaf, row, true);
      public boolean isCellEditable(EventObject event){
        return true;
    class NodeGUI2 {
         final ResizeNode view;
         Box box = Box.createVerticalBox();
         final JTextArea aa = new JTextArea( 1, 5 );
         final JTextArea aaa = new JTextArea( 1, 8 );
         NodeGUI2( ResizeNode view_ ) {
              this.view = view_;
              box.add( aa );
              aa.setBorder( BorderFactory.createMatteBorder( 0, 0, 1, 0, Color.GREEN ) );
              box.add( aaa );
              box.setBorder( BorderFactory.createMatteBorder( 5, 5, 5, 5, Color.CYAN ) );
         private Dimension getEditorPreferredSize() {
              Insets insets = box.getInsets();
              Dimension boxSize = box.getPreferredSize();
              Dimension aaSize = aa.getPreferredSize();
              Dimension aaaSize = aaa.getPreferredSize();
              int height = aaSize.height + aaaSize.height + insets.top + insets.bottom;
              int width = Math.max( aaSize.width, aaaSize.width );
              if ( width < boxSize.width )
                   width += insets.right + insets.left + 3;     // 3 for cursor
              return new Dimension( width, height );               
    class TextAreaNode2 extends DefaultMutableTreeNode {  
         NodeGUI2 gNode;
         TextAreaNode2(ResizeNode view_) {     
              gNode = new NodeGUI2(view_);
    }

    the node on the tree is only painted on using the
    renderer to do the painting work. A mouse listener
    has to be added to the tree, and when moved over an
    area, you have to determine if you are over the
    border and which direction to update the cursor and
    to know which way to resize when dragged. One of the
    BasicRootPaneUI has some code that can help determine
    that.Thanks for replying. What is your opinion on this alternative idea that I just had?
    I am wondering if it might be easier to have a toggle button in the node that you click when you want to resize the node. Then a mouse-down and dragging the mouse will resize the node. Mouse-up will reset the toggle button, and so will mouse down in an invalid area.
    Anil

  • I have restored and updated and I get a message saying WE'RE SORRY, WE ARE UNABLE tO COMPLETE wITH YOUR ACTIVATION AT tHIS MOMENT, PLEASE TRY AGAIN LATER, OR CONTACT CUSTOMER CARE would like to know which means that message and I have to do to activate

    Hi, I have a iphone 4 with IOS 5.1.1 baseband 04.12.01 AT&T recently release me but I have presented a problem with the activation of the device, I have restored and updated and I get a message saying WE'RE SORRY, WE ARE UNABLE tO COMPLETE wITH YOUR ACTIVATION AT tHIS MOMENT, PLEASE TRY AGAIN LATER, OR CONTACT CUSTOMER CARE would like to know which means that message and I have to do to activate hopefully help me with this problem and I have 3 months with the phone saying same message ...
    thank you very much ...

    but can not be unlocked
    If the phone was NOT unlocked, it can't work or be activated with any other carrier than AT&T.  It CAN'T be used with Tigo or Movistar.
    Your post makes very little sense.  Maybe you can get some help with English. 

  • I just got another ipod 5th generation and its working like a 4th generation. Help please?

    Origionally i cracked the screen on my 5th generation ipod. Apple gave me a new 5th gemneration and when i reatored the backup dat it startred working like a 4th generation. i downloaded iOS 7 and know i wont let me update. it says error code 3014. what do i do? i cant do anything on my ipod all it says is that the symbols that say connect to itunes. I dont know what to do? someone please help!

    Resolve communication issues
    Check the hosts file or TCP/IP filtering, which might cause communication issues between iTunes, ports, and servers.
    Common errors: 1004, 1013, 1638, 3014, 3194, or 3000-3999. These alerts refer to gs.apple.com, say "There was a problem downloading the software", or say the "device isn't eligible for the requested build".
    Also:
    https://discussions.apple.com/message/20200092#20200092#20200092
    https://discussions.apple.com/thread/4845581?tstart=30
    https://discussions.apple.com/thread/4947296?tstart=0

  • FileReference doesn't work with PHP Globals

    <help>,
    Ok so this is my problem. I have a flash movie that allows
    users to uploads two images to a server. What I'm trying to do is
    have the uploaded images go directly to their user's directory. I
    need the upload.php file to figure out which person is uploading an
    image. The php page that handles the file uploads will not read in
    any global variables (i.e. POST, GET, SESSION, COOKIE). Also
    FileReference.upload() doesn't allow you to send any GET / POST
    vars along with it (as far as I have tested and read about). I've
    been working on this for four days now and have concluded it's
    something to do with the Flash FileReference calling the php page.
    I believe for some reason when FileReference calls the php page the
    web server doesn't like/allow/understand how the page is called so
    it denies any global var requests. I know its flash because it
    works if I use an html front end with the same php uploader page.
    So the goal for you 'out of the box' thinkers is to get one
    single darn global variable pulled into the php upload page. The
    ONLY way I can think of doing this is when every time a user
    creates an account and their folder is created, it copies the php
    upload file their directory. Then in flash when a user needs to
    upload its calls the upload file in each persons upload directory.
    Needless to say I do not want to do it this way but I'm running out
    of ideas.
    P.S. someone has suggested uploading the images to a temp
    file name and then immediatly move the image to the users folder
    but I I'm tentive to do it that way since you could get two people
    uploading at the same time and one person would get the second
    person's image and the second person would get an error.
    <!--- actionscript code
    this._fileRef.upload("upload.php"); <---- works
    this._fileRef.upload("upload.php?user_id=4"); <---- does
    not work
    //-->
    <?php
    session_start();
    $user_id = $_SESSION['user_id']; // Does not work
    $user_id = $_COOKIE['user_id']; // Does not work
    $user_id = $_GET['user_id']; // Does not work
    $user_id = $_POST['user_id']; // Can't do with FileReference
    class
    ?>
    </help>

    This may help. You can pass some URL encoded data with the
    FileReference
    upload method.
    file_fr.upload("upload.php?testvar=Hello World " +Date());
    Then this is a demo on how you can see that data, which you
    would need to
    rework to use to set the path.
    <?php
    if ($_FILES['Filedata']['name']) {
    $uploadDir = "images/";
    $uploadFile = $uploadDir .
    basename($_FILES['Filedata']['name']);
    move_uploaded_file($_FILES['Filedata']['tmp_name'],
    $uploadFile);
    $filename = "output.txt";
    $fp = fopen( $filename,"w+");
    fwrite ( $fp, "Test" );
    fwrite ( $fp, $_REQUEST['testvar'] );
    fclose( $fp );
    ?>
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "Webmaster Pete" <[email protected]> wrote
    in message
    news:[email protected]...
    > <help>,
    >
    > Ok so this is my problem. I have a flash movie that
    allows users to
    > uploads
    > two images to a server. What I'm trying to do is have
    the uploaded images
    > go
    > directly to their user's directory. I need the
    upload.php file to figure
    > out
    > which person is uploading an image. The php page that
    handles the file
    > uploads
    > will not read in any global variables (i.e. POST, GET,
    SESSION, COOKIE).
    > Also
    > FileReference.upload() doesn't allow you to send any GET
    / POST vars
    > along
    > with it (as far as I have tested and read about). I've
    been working on
    > this for
    > four days now and have concluded it's something to do
    with the Flash
    > FileReference calling the php page. I believe for some
    reason when
    > FileReference calls the php page the web server doesn't
    > like/allow/understand
    > how the page is called so it denies any global var
    requests. I know its
    > flash
    > because it works if I use an html front end with the
    same php uploader
    > page.
    >
    > So the goal for you 'out of the box' thinkers is to get
    one single darn
    > global variable pulled into the php upload page. The
    ONLY way I can think
    > of
    > doing this is when every time a user creates an account
    and their folder
    > is
    > created, it copies the php upload file their directory.
    Then in flash when
    > a
    > user needs to upload its calls the upload file in each
    persons upload
    > directory. Needless to say I do not want to do it this
    way but I'm running
    > out
    > of ideas.
    >
    > P.S. someone has suggested uploading the images to a
    temp file name and
    > then
    > immediatly move the image to the users folder but I I'm
    tentive to do it
    > that
    > way since you could get two people uploading at the same
    time and one
    > person
    > would get the second person's image and the second
    person would get an
    > error.
    >
    > <!--- actionscript code
    > this._fileRef.upload("upload.php"); <---- works
    > this._fileRef.upload("upload.php?user_id=4"); <----
    does not work
    > //-->
    >
    > <?php
    > session_start();
    > $user_id = $_SESSION['user_id']; // Does not work
    > $user_id = $_COOKIE['user_id']; // Does not work
    > $user_id = $_GET['user_id']; // Does not work
    > $user_id = $_POST['user_id']; // Can't do with
    FileReference
    > class
    > ?>
    >
    > </help>
    >

  • My MacBook Pro gets very slow while doing  work like watching movies and using net .. video gets lag very often

    My MacBook Pro gets very slow while doing  work like watching movies and using net .. video gets lag very often and while surffing on net it gets very slow ...

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    Otherwise, take the steps below when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Is there a program that works like the old iPhoto?

    Is there a program that works like the old iPhoto?
    The old iPhoto is my ideal program. Unfortunately, it does not work on my new operating system. I like having the ability to look over my images with a slide show. However, the new package folder does not give me complete access to my pictures. Is there a program that will have both slide show with music options, and the general folder for the files? I heard that Picasa was supposed to have a general folder, but it is using the iPhoto package.
    I have looked over the solutions to getting access to images from the iPhoto package mentioned in the discussion forum. I would like a simpler system that works like the old iPhoto. Is this a possibility? I do not feel comfortable putting my original photo files into a system that does not let me look at the file information, and I would like to have the original benefits of iPhoto tools.
    Thank you for your time.

    Welcome to the Apple Discussions.
    The current iPhoto is laid out specifically the way it is because of folks like you
    Since iPhoto 7 (iLife 08) the old iPhoto Library Folder is now a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    Even in the old iPhoto it was never correct to access the iPhoto Library Folder.
    However, the new package folder does not give me complete access to my pictures.
    This is untrue. Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    There they all are.
    Standard Warning which applies to every version of iPhoto: Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    I do not feel comfortable putting my original photo files into a system that does not let me look at the file information
    What information are you missing? If you can tell us we may be able to help you more.
    Regards
    TD

  • Firefox asks to download like.php from sites with Facebook social button

    So, I don't know if this is a problem with one site or Facebook in general, but everytime I access this site, a download window for "like.php" appears four times in a row. I've seen the same problems in this forums when I searched for it, but none of them provided a final answer. By the way, I formated my PC some weeks ago and the problem happened before it, so it can't be cache, history or something like that.
    This may be about "Do Not Track" and/or other privacy extensions that I use. If it's not possible a solution now, could anyone explain why this happens? Is it because of the site, Facebook, Firefox, settings or extensions?

    That should be an issue on the server.
    Firefox should not ask you to download a PHP file. Instead it should ask you to download a HTML equivalent.
    Try this: get the PHP file and open it. If you don't find < ?php in the file it means it's an issue on Firefox and you may want to clear your cookies.
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    If this doesn't work, maybe you'd need to reset Firefox.
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    If this doesn't work too or you found < ?php then the issue may be on the server, which doesn't process CGI commands for the mimetype. That's an issue on Facebook and should be fixed soon.
    Did this fix your problems? Please report back to us!

  • [Solved] Custom CA - curl yes, php-apache no?

    Hi guys,
    I've reached the end of my understanding on this one...
    * I have an arch server running apache with php-apache and a selfsigned CA.
    * The server also runs a (configured and working) courier imap server
    * I symlinked the CA to /usr/local/share/ca-certificates as well as /etc/ssl/certs and ran update-ca-certificates
    * curl https://[hostname] works fine
    * PHP (it's Tine20) using stream_socket_enable_crypto on the imap server fails to verify the certificate:
    stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    ... Why? I did not configure any CA path, as far as I am aware, php should use curls CA bundle.
    Any help is greatly appreciated.
    Update:
    strace shows httpd actually opens the CAcert by hash (/etc/ssl/certs/7ed92e6f.0), then tries to stat /etc/ssl/certs/7ed92e6f.1, then proceeds to open /dev/log and write the error message to log. So how do I find out which part of my certificate/chain it didn't like?
    After updating Tine20 the TLS error messages became more helpful... It was a CN mismatch as the Tine setup was configured for localhost. I'm not sure why this suddenly stopped working because it shouldn't have in the first place...
    Last edited by XT (2014-10-11 22:07:08)

    I can only really tell you how I do it -- I'm not exactly an expert with in-depth knowledge of how kernel works  
    The way I compile the kernel is by adapting the PKGBUILD for the current kernel from the ABS.  I use the script from this thread (http://bbs.archlinux.org/viewtopic.php?id=34815) to rename the kernel and add "make menuconfig" command to the PKGBUILD; I also manually add some patches.  If you want to use this script be careful: is a bit old and last time I've tried it changed "kernel26" to kernel26-[myname] in few some source addresses which obviously was not good but also not really difficult to fix. 
    When I compile the kernel like this I can just do "mkinitcpio -p kernel26-[myname]" and this generates the image without any problems.
    Sorry -- that's the best answer I can give you.  Perhaps somebody else will have ideas what needs to be done using your method to get the kernel to work.  Maybe just looking at the script will give you some ideas...

  • Problem when displaying images when working  with PHP, mysql and dreamweaver in a brower

    Hey Guys
    I am new to dynamic development but I already did some
    research and tutorials about how to get a dynamic web site working
    with PHP and Mysql in Dreamweaver. I set up a test page to view
    some content on it directly from the mysql database and it worked
    just fine in dreamweaver only when I pressed the
    live data view.
    When I tried to view the same page using the browser preview
    with firefox and internet explorer, plain text from the database
    was correctly displayed on the brower but the images were absent.
    In the mysql database I used the varchar as my picture data
    type field so that I will refer in dreamweaver in the data binding
    panel in the img.src to the picture column of my database.
    I anyone can tell me what am I doing wrong so that my
    pictures are not displayed in the browser when i click the browser
    preview facility in dreamweaver I would be very very and very
    pleased ! :)

    The odds are that it is the way that you have referenced the
    images rather
    than an issue with the database. If you have the images root
    relative like
    this "/images" then they will work in preview, and on the
    webserver, but
    will not view when looking at the file via localhost.
    If possible make the links page relative and then they should
    work fine.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "mariosal026" <[email protected]> wrote in
    message
    news:ea3nq2$9ol$[email protected]..
    > Hey Guys
    >
    > I am new to dynamic development but I already did some
    research and
    > tutorials
    > about how to get a dynamic web site working with PHP and
    Mysql in
    > Dreamweaver.
    > I set up a test page to view some content on it directly
    from the mysql
    > database and it worked just fine in dreamweaver only
    when I pressed the
    >
    live
    > data view.
    >
    > When I tried to view the same page using the browser
    preview with firefox
    > and
    > internet explorer, plain text from the database was
    correctly displayed on
    > the
    > brower but the images were absent.
    >
    > In the mysql database I used the varchar as my picture
    data type field so
    > that
    > I will refer in dreamweaver in the data binding panel in
    the img.src to
    > the
    > picture column of my database.
    >
    > I anyone can tell me what am I doing wrong so that my
    pictures are not
    > displayed in the browser when i click the browser
    preview facility in
    > dreamweaver I would be very very and very pleased ! :)
    >

  • Custom app working with CRE 8.5, not working after migration to BOE XI

    Hello,
    I have this custom legacy app coming from way back in time, which -among other things- connects to a CRE 8.5 APS to get the list of available reports and the rights of a given user over those reports (view instances, request on demand, and so on). The logic of this custom application works quite well, though it's a bit cryptic (to me at least).
    Now, I have the task of migrating the app from CRE 8.5 to BOE XI R2. The migration itself was rather easy, thanks to the migration wizards, and all the users, groups, permission settings, and everything else seems to have been properly replicated in the BOE XI CMS. However the custom app is not working so well after the migration: it can retrieve all the info about the reports and do pretty much the same it was doing before the migration, but when it comes to user's security settings (permissions to see or request a given report) the app just can't get the proper info.
    To properly explain what's going on, I will have to go into detail with some lengthy description of the code.
    Here it goes. This is the (partial) code that queries if a given user (UserID) has permission to view and/or request on demand a set of reports in the server:
    Qry2 = &quot;Select SI_ID, SI_NAME From CI_INFOOBJECTS&quot;
      Qry2 = Qry2 & &quot; Where SI_PROGID = &quot; & &quot;'&quot; & &quot;CrystalEnterprise.Folder&quot; & &quot;'&quot; _
             & &quot;and SI_PARENT_FOLDER in &quot; & GetFirstLevelFolder(iStore, FolderProperty)
      Set varFolders = iStore.Query(Qry2)
      For Each Item In varFolders   'First level displayed folder
          Set infoSLevelFolders = GetSubfoldersByParentID(iStore, Item.ID) 'Second level displayed folders
          intFolderRightsCount = GetRightsCount(iStore, UserID, Item.ID)
          For Each infoSLevelFolder In infoSLevelFolders
               Set infoReports = GetReportsByFolderID(iStore, infoSLevelFolder.ID)
               For Each infoReport In infoReports
                      rsOutput.AddNew   'Set output recordset fields
                      rsOutput.Fields("FOLDERID") = Item.ID
                      rsOutput.Fields("FOLDERNAME") = Item.Title
    (not sure why, but the message won't accept more text than the above... I will have to post a second message with the rest of it)
    Edited by: Marcelo Rybertt on Mar 30, 2010 8:39 PM
    Edited by: Marcelo Rybertt on Mar 30, 2010 8:49 PM

                      rsOutput.Fields("FOLDER2ID") = infoSLevelFolder.ID
                      rsOutput.Fields("FOLDERNAME2") = infoSLevelFolder.Title
                      rsOutput.Fields("REPORTID") = infoReport.ID
                      rsOutput.Fields("REPORTNAME") = infoReport.Title
                      If UserID = 0 Or intFolderRightsCount > 1 Then 'no this user or rights on the folder level
                         rsOutput.Fields("ROD") = False
                         rsOutput.Fields("VRI") = False
                      Else
                         intReportRightsCount = GetRightsCount(iStore, UserID, infoReport.ID)
                         If intReportRightsCount = 4 Then
                            rsOutput.Fields("ROD") = False
                            rsOutput.Fields("VRI") = True
                         ElseIf intReportRightsCount = 5 Then
                            rsOutput.Fields("ROD") = True
                            rsOutput.Fields("VRI") = False
                         ElseIf intReportRightsCount > 5 Then
                            rsOutput.Fields("ROD") = True
                            rsOutput.Fields("VRI") = True
                         Else
                            rsOutput.Fields("ROD") = False
                            rsOutput.Fields("VRI") = False
                         End If
                     End If
               Next
         Next
      Next
    I have two scenarios, for the same user. The first scenario is the custom app working against a CRE 8.5 server. The second scenario is the same app against a BOE XI server, and the data in that server is the result of running the import wizard, using the 8.5 server as the source of data. The app was done with VB6, and the only difference between working against 8.5 or XI, is the set of dll's used in each case (code compiles flawlessly with either set of libraries).
    ROD stands for Request On Demand. True means the user can ROD. False, the user can't.
    VRI stands for View Report Instance. Same deal.
    intFolderRightsCount and intReportRightsCount are both calculated from the GetRightsCount function, like this:
    Set iReports = iStore.Query("Select SI_ID From CI_INFOOBJECTS Where SI_ID=" & REPORTID)
    u2026
    Set principal = iReport.SecurityInfo.AnyPrincipal(UserID)
    u2026
    GetRightsCount = principal.Rights.Count
    (again, same issue with the message... need to continue this in a third -and last I hope- post)

  • Is there any form that works like Jtable that can be written into the html

    Is there any form that works like Jtable that can be written into the html or jsp format?
    <INPUT TYPE="SUBMIT" NAME="command" VALUE=""> refer to a Sumbit Button.
    There no such thing below "I think"but just dreaming
    Is there something like
    <INPUT TYPE="TABLESUBMIT" NAME="customer" VALUE={rowcolumn(1,3,"peter"),rowcolumn(last,"name","jane")}> ......

    Keep dreaming. As long as you are using HTML you are stuck with
    all of its limitations. Among these is the lack of a JTable.
    You have several options:
    1) Use an HTML <TABLE>. For plain text you just put the
    text between <td></td> tags. For input you put the input
    as <td><input...></td>.
    2) Extend #1 by creating your own object to draw the table.
    You can do this in either Java or JavaScript. There are several
    examples on the internet of how to do this. Some even include
    sorting by clicking the column headings.
    3) If you really want to use a JTable then you can write a JApplet
    and put it on your JSP page.

  • Safari says "i cannot open the page because the server cannot be found" I get this on Safari and Mail does not function. Apps work like a dream. All Windows OS are screaming. Any thoughts?

    Safari says "i cannot open the page because the server cannot be found" I get this on Safari and Mail does not function. Apps work like a dream. All Windows OS are screaming. Any thoughts?

    You can check this thread for the answer you are looking for.
    https://discussions.apple.com/thread/3685247?start=0&tstart=0

Maybe you are looking for