Problem with making folders in finder

when i use finder to make a new folder, the new folder has all the contents of my desktop in it. How do i correct this?

How are you making the new folder? Where are you creating this new folder?  Does this happen no matter where the new folder is created?

Similar Messages

  • Problem with opening folders in finder!

    Hello everyone i just got my first mac two weeks ago and suddenly in the dock when i click the download section it shows me a preview of all the downloads i have in the downloads folder but when i click open downloads in finder "Open in Finder" it opens itunes playing music and does not open the folder containing my downloads this happens in when y click open in finder in every folder it opens itunes. How do i fix this issue ?
    Thank You

    Hey Barry i did try trashing the file but the problem still persist what i did was the following: i deleted itunes and when i click "Open in Finder" the problem was solved it open finder showing me the folder containing my downloads the same for the documents folder that are located in the dock, i installed itunes again to see if this problem was solved and when i click "Open in Finder" to see it opened itunes playing music.

  • Problem with making a database link.

    Hello All
    I got a problem with making a database link.
    When I execute this query
    CREATE PUBLIC DATABASE LINK DBNAME
    CONNECT TO database IDENTIFIED BY name
    USING 'DBNAME.europe.company.com';
    I am using other names because its private information
    But when I look at the table dba_db_links I see this
    OWNER | DB_LINK | USERNAME |HOST
    PUBLIC| DBNAME.europe.company.com| name| DBNAME.europe.company.com
    So the DB_Link name is changed. And this causes a problem with my asp website. I get the fault message
    ORA-02085: database link DBNAME.europe.company.com connects to DBNAME
    Cause: a database link connected to a database with a different name. The connection is rejected.
    The global_names = true and I prefer to keep it that way.
    So does anyone knows what is wrong about my Query or how I can change the DB_Link name.
    Thanks for the support,
    Remco

    Thanks for the help Mohit
    But thats whats I was doing.
    The query in the first post is the same as what you are posting.
    But by an (for me) unknown reason the database converts DBNAME to DBNAME.europe.company.com

  • PROBLEM WITH MAKING RECTANGLE

    i have a problem with illustrator cs6.. before this i've tried cs5..but when i use cs6 i have a problem when making a rectangle..when i make rectangle let say 3cm x 3cm without border i mean stroke i got the exact size but then when i use border only i mean stroke only without feel with the same box the size change into 3.0555 not 3 cm anymore..so is there anything that i missed tick out in ai cs6? reply me asap...

    Could be that "use preview bounds" is turned on in the preferences. Here is the same rectangle with that preference off (left), and on (right).
    The rectangle was not changed in any way between these two screen shots; just the preference.

  • Having Problems With Sharing & Permissions in Finder

    I am using a Mac Mini (mid-2011) running Lion Server 10.7.4.
    I have noticed lately that when I check files the Sharing & Permissions portion using Get Info on my files I find that there are two lines for each user on my compuer.  The first set of lines says Read & Write which I actually selected.  The second set of lines says Custom.  When I check I have the list Read & Write, Read, Custom.  When I try to change Custom I cam select new option No Privileges Info.  For the other users I am able to delete the extra line once I select No Privileges Info.  However even though I have more than one line I cannot delete the extra line for the main user.  I will try and delete the extra line for the main user logged in as someone else that has what I have defined as admin privileges (reason I have more than one user).
    This really concerns me because this issue is causing problems with me adding or removing files as needed in the terminal.  When I try I get this funky error:
    Dubious permissions on file (skipping): filename with duplicate entries for a user.
    This is happening more and more even though I am not changing the file permissions that I am aware of.
    Any help would be appreciated.

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Back up all data now. Before proceeding, you must be sure you can restore your system to its present state
    Launch the Terminal 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 Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the Recovery screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Q10, problem with making a Security Copy

    Two weeks ago, I haven't been able to make a Security Copy. A frame with "An error has been produced while making a security copy" (translated from Spanish) appears every time I try to make one.
    It also says "It might have occurred a problem with the smartphone or the connection during the security copy. Verify that the smartphone is turned-on and is connected".
    CAN YOU PLEASE HELP ME???
    Thanks. Regards,
    J

    Are you Spanish speaking?
    Estimado Usuario, lamentablemente este foro es solo para el idioma Ingles, sin embargo lo podemos ayudar en el foro especializado en Español, esta es la dirección donde gustosamente lo podemos atender:
    http://foros.blackberry.com/t5/Foros-de-Soporte-General/ct-p/bscf_es
    Muchas gracias
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Problems with browser loading and finder menus

    I have a MacPro Tower using airport to connect to a DSL modem. Recently I am having problems with very slow loading of web pages, often showing "Can't Find Server" errors. The problem is not with my DSL provider, because I have two older Macs in the house using the same DSL line and they are working fine. Video tutorials on Adobe's site are freezing about two minutes in and never load entirely (not a problem on the other Macs). This happens with any browser so not a browser problem. Also when quitting applications on occasion the finder menu continues to show the menu for the application I have just quit and seems reluctant to go back to finder or another application.
    Anyone have any ideas?

    Similar problem here: sometimes ALL browsers (Safari, Camino, Firefox) stuck randomly on certain web pages.
    If I force close the browsers, the program remain in Dock (but not in Process Monitor or in Terminal) and the machine refuse to restart (but others programs works as well).
    Even if I submit a "sudo reboot" the machine remains in unknow state.
    The only way to exit from this situation is to do an hard reset.

  • Problem with making gifs

    I'm using the photoshop portable cs5 and I'm having a problem with this bar i have detach in red, just doesn't appear. I have installed others photoshop, but I keep with the same problem. Someone can help me? Thanks, anyway. Sorry for the bad english hehe

    Don't worry about your English.  You have a bigger, ethical problem.
    You have an illegal version of Photoshop that must be wiped off your hard disk immediately.
    Message was edited by: station_two

  • Problem with f:invoke - cannot find method with argument

    Hi,
    I have <f:invoke var="${bpmObj}" methodName="tempMethod" retAttName="... /> in my JSP.
    Now, in ALBPM I have this method tempMethod and I gave it one out argument so it can return something to my JSP variable given in retAttName.
    Problem is that it cannot find this method because it is something like tempMethod(out resultString) and my JSP invoke has no input/output attributes at all.
    It is working only when I delete all in/out args from definition of my method, but I want it to return something! How to do it? please help.
    regards,
    Paul

    Hi.
    Search under sap portal->admi->support->ROOT/WEB-INF/deployment/pcd/ for com.sap.km.cm.repository.service.base.par.bak
    Best regards,
    Aliaksandr Zhukau

  • Problem with opening folders

    Hi all,
    The problem ocurred several days ago, I can't trace what might have caused it.
    When using Spotlight or Dock folders, I cannot open any folder. Instead, Preview is being launched and a graphic file inside the folder is being opened. This happens every time, with no exceptions. In nested folders, clicking on the "Open in Finder" arrow (when opening folders via Dock) brings the same result.
    I have made a short screencast showing the problem, it can be found here: http://www.youtube.com/watch?v=qirzp8WmnjM
    Please help, it's very annoying
    Regards,
    Adam

    It didn't help.
    However, I have solved the problem using this little program: RCDefaultApp - it turned out that Finder file type "fold" somewhat become unmarked. After marking it the problem is gone

  • Problems with Public Folders in Exchange 2010

    Last month I upgraded my servers from 2000 to 2010. The route I took for exchange was 2000 -> 2003 -> 2010. Everything went fairly smooth and I have had no real problems until this week. (I have uninstalled the older exchange servers.) I have been
    trying to clean out some of the remnants that have been left over from the older servers (for whatever reason the uninstall did not remove the information on the new server). I used ASDI edit to remove some old information that was pointing to the old exchange
    server (First Administration Group I think it was called).
    After that I upgraded to SP1 and Rollup 1. The Public folder database no longer appears under Organization Configuration, Mailbox. I am not sure if it was there after my deletion or not, so I am unsure if the problem is caused by my deletions or the upgrade.
    I followed the instructions found here, http://technet.microsoft.com/en-us/library/bb727370%28EXCHG.80,printer%29.aspx . The CN=Public folders was found in CN=Folder Hierarchies. However
    msExchOwningPFTree is greyed out, so I cannot update it. I have tried to delete it and remake it, same thing.
    I also get the following events which I am assuming is caused by the Public Folders database not being mounted:
    Log Name:      Application
    Source:        MSExchangeRepl
    Date:          10/28/2010 11:03:51 AM
    Event ID:      3154
    Task Category: Service
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      sachdc00001.sunshineacres.local
    Description:
    Active Manager failed to mount database Public Folder Database 1678798462 on server sachdc00001.sunshineacres.local. Error: An Active Manager operation failed with a transient error. Please retry the operation. Error: Database action failed with transient error.
    Error: A transient error occurred during a database operation. Error: MapiExceptionADPropertyError: Unable to mount database. (hr=0x80004005, ec=2418)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchangeRepl" />
        <EventID Qualifiers="49156">3154</EventID>
        <Level>2</Level>
        <Task>1</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-10-28T18:03:51.000000000Z" />
        <EventRecordID>42074</EventRecordID>
        <Channel>Application</Channel>
        <Computer>sachdc00001.sunshineacres.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Public Folder Database 1678798462</Data>
        <Data>sachdc00001.sunshineacres.local</Data>
        <Data>An Active Manager operation failed with a transient error. Please retry the operation. Error: Database action failed with transient error. Error: A transient error occurred during a database operation. Error: MapiExceptionADPropertyError:
    Unable to mount database. (hr=0x80004005, ec=2418)
    </Data>
      </EventData>
    </Event>
    Log Name:      Application
    Source:        ExchangeStoreDB
    Date:          10/28/2010 11:03:51 AM
    Event ID:      231
    Task Category: Database recovery
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      sachdc00001.sunshineacres.local
    Description:
    At '10/28/2010 11:03:51 AM', the copy of database 'Public Folder Database 1678798462' on this server encountered an error during the mount operation. For more information, consult the Event log on the server for "ExchangeStoreDb" or "MSExchangeRepl"
    events. The mount operation will be tried again automatically.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="ExchangeStoreDB" />
        <EventID Qualifiers="49156">231</EventID>
        <Level>2</Level>
        <Task>1</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-10-28T18:03:51.000000000Z" />
        <EventRecordID>42073</EventRecordID>
        <Channel>Application</Channel>
        <Computer>sachdc00001.sunshineacres.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Public Folder Database 1678798462</Data>
        <Data>0855badd-62f3-421f-9175-86cf26891c8a</Data>
        <Data>Store</Data>
        <Data>GenericMountFailure</Data>
        <Data>
        </Data>
        <Data>Store</Data>
        <Data>There is only one copy of this mailbox database (Public Folder Database 1678798462). Automatic recovery is not available.</Data>
        <Data>10/28/2010 11:03:51 AM</Data>
      </EventData>
    </Event>
    Log Name:      Application
    Source:        MSExchangeIS
    Date:          10/28/2010 11:03:51 AM
    Event ID:      9519
    Task Category: General
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      sachdc00001.sunshineacres.local
    Description:
    While starting database 0855badd-62f3-421f-9175-86cf26891c8a, the following error occurred: 0x972. 
    Look up of DB Info failed.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchangeIS" />
        <EventID Qualifiers="49158">9519</EventID>
        <Level>2</Level>
        <Task>6</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-10-28T18:03:51.000000000Z" />
        <EventRecordID>42072</EventRecordID>
        <Channel>Application</Channel>
        <Computer>sachdc00001.sunshineacres.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>0x972</Data>
        <Data>0855badd-62f3-421f-9175-86cf26891c8a</Data>
        <Data>Look up of DB Info failed</Data>
        <Binary>5B444941475F4354585D00002E000000FF8C170000000000000220000000496340107209000068284010720900003DE900104000060E3DD1401072090000</Binary>
      </EventData>
    </Event>
    Also, the CN=InformationSore is empty. Is this normal?
    Now I am assuming I deleted something that I shouldn't have.

    Tried that, I get the following when I go to the Public Folder Management Console:
    Cannot complete the operation because there isn't an available public folder database on server
    And even if I did that how does that help me retrieve my missing information?

  • Problems with icloud folders and sent items

    Hey,
    I have done an extensive search but cannot find the answer to my query. I have been a long time user of apple’s email service and thus have an @mac.com/@me.com and an @icloud.com email address. Recently icloud has been playing up and is no longer storing my sent emails in the sent email file but is creating a smart “Trash” folder with a “sent Items” folder in that and this is where my sent items are coming up.
    This is not only annoying but is also mucking up my ability to sync properly with Postbox
    Does anyone know what on earth is going on?
    Thank you!

    If this is a POP account and you’re running Mac OS X 10.3 (Panther), you probably have the problem described here:
    Overstuffed mailbox is unexpectedly empty
    If you’re just starting to experience the problem, doing what the article suggests might work. If you’ve let the problem to become worse over time, however, it’s almost certainly too late to solve it as described in the article.
    Because of the differences between Mail 1.x and Mail 2.x, further discussing your problem here might confuse other users with apparently similar problems using Mac OS X 10.4 (Tiger), so please start a new topic in the Mail & Address Book - Mac OS X 10.3 & earlier forum, or just look for other threads discussing the same problem there. This is actually a FAQ in that forum.

  • Problem with making 16:9 PAL DVD

    Hello!
    I'm trying to make a 16:9 PAL DVD in Adobe Encore and everything is perfect untill I play the DVD on my TV (it works just fine on my computer). Two videos included in the DVD were made in Adobe Premiere and one of them works without any problems (it is just a slideshow), but part of the other footage isn't shown on the TV - the video is being played on the TV with no black lines around it, but it is like cropped. The video was made in 16:9 and I've also checked the settings on my DVD player, which look just fine to play a 16:9 DVD. I think that this problem had occured while making the DVD in Adobe Encore and I'd like to know how to solve it if anyone of you can tell me how.
    Thanks for your help.

    OK, the PrPro Project/Sequences are set to 16:9 PAL and Exported as that, into an Encore 16:9 PAL Project, right, or did you use Adobe DL for transferring the Assets over?
    On a computer, the DVD plays fine, but part of one of the Timelines is black, when the DVD is run on a set-top player, hooked to a TV. The other Timeline is shown much smaller, with black bars around it. Is that correct?
    Can you test the DVD on another set-top player, and another TV? Maybe stop by your local electronics store and ask them to play it for you. What happens there?
    As there are differences in the setting of both players and TV's regarding wide-screen, it could be as simple as those settings. However, that would not explain why half of one Timeline is black. Now, poor choice of media, or too high a burn rate could account for some of that.
    What media did you use, and what was the burn rate?
    Good luck,
    Hunt

  • Again same problem with quotes, but cant find a proper sol

    I've gone thru so many posts, but cud'nt really find a solution. someone please help me here. I have a single insert function, which does all inserts for many tables, so cant use ppdstmt.setString(1, "value").
    I am trying to insert some data into SQL server database(thru jdbc). The normal data works just fine, but if the user inserts some data which have quotation marks, then its throwing an error that is invalid character.
    ex: received ->enters correctly into db
    but
    rec'd -> unable to
    Insert into table(name) values('Oreilly'); //works fine
    Insert into table(name) values('O'reilly'); //throws an error, sql exception
    because the sql server is unable to find the matching quote. I would like to replace it with a ` or double quotes, but I am unable to replace it. I am not using a string to insert a value, I am using an Object. so I am unable to use any preparedStatement also(like ppdstmt.setString(1,"value"). Also I cant use replaceAll function, because, I am using jdk1.3. Is there any other way, I can replace ' with '' or `. The following is my code for inserting data.
    private void insert(String pQualifierName, String pTableName, Map pValueMap)
    m1Buffer.append("INSERT INTO ").append(QualifyTableName(pQualifierName, pTableName)).append(" (");
    m2Buffer.append(" VALUES (");
    // go over all values
    boolean isNotFirst = false;
    for (Iterator i = pValueMap.keySet().iterator(); i.hasNext();)
    if (isNotFirst)
    m1Buffer.append(", ");
    m2Buffer.append(", ");
    isNotFirst = true;
    String aColumnName = (String) i.next();
    // add the column name to the first part
    m1Buffer.append(aColumnName);
    // add a "?" to the second part, as well as adding the value to the parameter list
    if(pValueMap.get(aColumnName)!= null) {
    //aColumnName=aColumnName.replace( '\'', '`');
    m2Buffer.append("'");
    m2Buffer.append(pValueMap.get(aColumnName));
    m2Buffer.append("'");
    } else {
    m2Buffer.append(pValueMap.get(aColumnName)); //appends the value we entered
    m1Buffer.append(")");
    m2Buffer.append(")");
    protected void insert()
    verifyUnbacked();
    try
    StatementBuilder aBuilder = StatementBuilder.insertStatement(accessQualifierName(), accessTableName(), mUnbackedMap);
    Connection aConnection = ConnectionPool.getConnection();
    try
    PreparedStatement aPreparedStatement = aBuilder.generatePreparedStatement(aConnection);
    try
    aPreparedStatement.executeUpdate();
    Thanks

    Barun_guha,
    Thanks for your code, but the problem is pValueMap.get(aColumnName) is an Object and it cannot be initialized as a String .
    scsi-boy,
    I am attaching the 2 files related, StatementBuilder.java and AbstractEntity.java.
    Basically, the statementBuilder.java builds the SQL stmt and AbstractEntity.java does the update, delete and inserts(it has the PreparedStament). So could someone suggest me a solution based on this code.
    Thanks
    import firstpro.util.AbstractType;
    import java.sql.*;
    import java.util.*;
    public class StatementBuilder
    private static final StatementType SELECT = new StatementType("SELECT");
    private static final StatementType INSERT = new StatementType("INSERT");
    private static final StatementType IDENTITY = new StatementType("IDENTITY");
    private static final StatementType UPDATE = new StatementType("UPDATE");
    private static final StatementType DELETE = new StatementType("DELETE");
    * is true when the prepared statment can be set as "read-only" (i.e., a select of some kind).
    private boolean mIsReadOnly = false;
    * denotes what operation this statement represents.
    private StatementType mStatementType;
    * accumulates all the table names used in the statement.
    private List mTableList = new ArrayList();
    * holds the sequence of tables followed in join expressions.
    private LinkedList mTableStack = new LinkedList();
    * accumulates the table column names referenced in the statement.
    private Set mReferenceSet = new HashSet();
    * holds the column names used in the select result.
    private List mResultColumnList = new ArrayList();
    * is the first part of the generated SQL statement.
    private StringBuffer m1Buffer = new StringBuffer();
    * is the second part of the generated SQL statement.
    private StringBuffer m2Buffer = new StringBuffer();
    * holds the list of actual parameter values to substitute for the "?" symbols in the generated SQL.
    private List mParameterList = new ArrayList();
    * constructs an instance with the given type.
    * @param pStatementType
    private StatementBuilder(StatementType pStatementType)
    mStatementType = pStatementType;
    * creates a "select" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @param pResult
    * @return
    static StatementBuilder selectStatement(String pQualifierName, String pTableName, AbstractEntityCondition pCondition, AbstractEntityResult pResult)
    StatementBuilder aBuilder = new StatementBuilder(SELECT);
    aBuilder.select(pQualifierName, pTableName, pCondition, pResult);
    return aBuilder;
    * creates a "select distinct" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @param pResult
    * @return
    static StatementBuilder distinctStatement(String pQualifierName, String pTableName, AbstractEntityCondition pCondition, AbstractEntityResult pResult)
    StatementBuilder aBuilder = new StatementBuilder(SELECT);
    aBuilder.distinct(pQualifierName, pTableName, pCondition, pResult);
    return aBuilder;
    * creates a "select count(*)" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @return
    static StatementBuilder countStatement(String pQualifierName, String pTableName, AbstractEntityCondition pCondition)
    StatementBuilder aBuilder = new StatementBuilder(SELECT);
    aBuilder.count(pQualifierName, pTableName, pCondition);
    return aBuilder;
    * creates in "insert" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pValueMap
    * @return
    static StatementBuilder insertStatement(String pQualifierName, String pTableName, Map pValueMap)
    StatementBuilder aBuilder = new StatementBuilder(INSERT);
    aBuilder.insert(pQualifierName, pTableName, pValueMap);
    return aBuilder;
    * creates an "identity" statement (for retrieving the generated primary key from the DB after an insert).
    * @param pTypeName
    * @return
    static StatementBuilder identityStatement(String pTypeName)
    StatementBuilder aBuilder = new StatementBuilder(IDENTITY);
    aBuilder.identity(pTypeName);
    return aBuilder;
    * creates an "update" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pValueMap
    * @param pCondition
    * @return
    static StatementBuilder updateStatement(String pQualifierName, String pTableName, Map pValueMap, AbstractEntityCondition pCondition)
    StatementBuilder aBuilder = new StatementBuilder(UPDATE);
    aBuilder.update(pQualifierName, pTableName, pValueMap, pCondition);
    return aBuilder;
    * creates a "delete" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @return
    static StatementBuilder deleteStatement(String pQualifierName, String pTableName, AbstractEntityCondition pCondition)
    StatementBuilder aBuilder = new StatementBuilder(DELETE);
    aBuilder.delete(pQualifierName, pTableName, pCondition);
    return aBuilder;
    * emits a predicate of "true".
    void trueAlways()
    appendTrue();
    * emits a predicate of "false".
    void falseAlways()
    appendFalse();
    * emits a "join" predicate.
    * @param pColumnName
    * @param pQualifierName
    * @param pJoinedTableName
    * @param pJoinedColumnName
    * @param pCondition
    void join(String pColumnName, String pQualifierName, String pJoinedTableName, String pJoinedColumnName, AbstractEntityCondition pCondition)
    if (!SELECT.equals(mStatementType))
    throw new RuntimeException("Join only allowed in SELECT");
    appendOpening();
    appendColumn(pColumnName);
    appendEqualTo();
    pushTable(pQualifierName, pJoinedTableName);
    appendColumn(pJoinedColumnName);
    appendClosing();
    appendAnd();
    appendOpening();
    appendCondition(pCondition);
    appendClosing();
    popTable();
    * emits an "and" predicate.
    * @param pCondition1
    * @param pCondition2
    void and(AbstractEntityCondition pCondition1, AbstractEntityCondition pCondition2)
    appendOpening();
    appendCondition(pCondition1);
    appendClosing();
    appendAnd();
    appendOpening();
    appendCondition(pCondition2);
    appendClosing();
    * emits an "and" predicate.
    * @param pConditionArray
    void and(AbstractEntityCondition[] pConditionArray)
    if (0 == pConditionArray.length)
    appendTrue();
    else
    for (int i = 0; i < pConditionArray.length; i++)
    if (i != 0)
    appendAnd();
    appendOpening();
    appendCondition(pConditionArray);
    appendClosing();
    * emits an "or" predicate.
    * @param pCondition1
    * @param pCondition2
    void or(AbstractEntityCondition pCondition1, AbstractEntityCondition pCondition2)
    appendOpening();
    appendCondition(pCondition1);
    appendClosing();
    appendOr();
    appendOpening();
    appendCondition(pCondition2);
    appendClosing();
    * emits an "or" predicate.
    * @param pConditionArray
    void or(AbstractEntityCondition[] pConditionArray)
    if (0 == pConditionArray.length)
    appendFalse();
    else
    for (int i = 0; i < pConditionArray.length; i++)
    if (i != 0)
    appendOr();
    appendOpening();
    appendCondition(pConditionArray[i]);
    appendClosing();
    * emits a "not" predicate.
    * @param pCondition
    void not(AbstractEntityCondition pCondition)
    appendNot();
    appendOpening();
    appendCondition(pCondition);
    appendClosing();
    * emits an "is null" predicate.
    * @param pColumnName
    void isNull(String pColumnName)
    appendColumn(pColumnName);
    appendIsNull();
    * emits an "is not null" predicate.
    * @param pColumnName
    void isNotNull(String pColumnName)
    appendColumn(pColumnName);
    appendIsNotNull();
    * emits a "between" predicate.
    * @param pColumnName
    * @param pValue1
    * @param pValue2
    void isBetween(String pColumnName, Object pValue1, Object pValue2)
    appendColumn(pColumnName);
    appendBetween();
    appendValue(pValue1);
    appendAnd();
    appendValue(pValue2);
    * emits a case-insensitive "between" predicate.
    * @param pColumnName
    * @param pValue1
    * @param pValue2
    void isBetweenIgnoringCase(String pColumnName, Object pValue1, Object pValue2)
    appendColumnUpper(pColumnName);
    appendBetween();
    appendValueUpper(pValue1);
    appendAnd();
    appendValueUpper(pValue2);
    * emits a "like" predicate.
    * @param pColumnName
    * @param pValue
    void isLike(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendLike();
    appendValue(pValue);
    * emits a case-insensitive "like" predicate.
    * @param pColumnName
    * @param pValue
    void isLikeIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendLike();
    appendValueUpper(pValue);
    * emits an "equals" predicate.
    * @param pColumnName
    * @param pValue
    void isEqualTo(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendEqualTo();
    appendValue(pValue);
    * emits a case-insensitive "equals" predicate.
    * @param pColumnName
    * @param pValue
    void isEqualToIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendEqualTo();
    appendValueUpper(pValue);
    * emits an "unequals" predicate.
    * @param pColumnName
    * @param pValue
    void isNotEqualTo(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendNotEqualTo();
    appendValue(pValue);
    * emits a case-insensitive "unequals" predicate.
    * @param pColumnName
    * @param pValue
    void isNotEqualToIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendNotEqualTo();
    appendValueUpper(pValue);
    * emits a "less than" predicate.
    * @param pColumnName
    * @param pValue
    void isLessThan(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendLessThan();
    appendValue(pValue);
    * emits a case-insensitive "less than" predicate.
    * @param pColumnName
    * @param pValue
    void isLessThanIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendLessThan();
    appendValueUpper(pValue);
    * emits a "less than or equals" predicate.
    * @param pColumnName
    * @param pValue
    void isLessThanOrEqualTo(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendLessThanOrEqualTo();
    appendValue(pValue);
    * emits a case-insensitive "less than or equals" predicate.
    * @param pColumnName
    * @param pValue
    void isLessThanOrEqualToIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendLessThanOrEqualTo();
    appendValueUpper(pValue);
    * emits a "greater than" predicate.
    * @param pColumnName
    * @param pValue
    void isGreaterThan(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendGreaterThan();
    appendValue(pValue);
    * emits a case-insensitive "greater than" predicate.
    * @param pColumnName
    * @param pValue
    void isGreaterThanIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendGreaterThan();
    appendValueUpper(pValue);
    * emits a "greater than or equals" predicate.
    * @param pColumnName
    * @param pValue
    void isGreaterThanOrEqualTo(String pColumnName, Object pValue)
    appendColumn(pColumnName);
    appendGreaterThanOrEqualTo();
    appendValue(pValue);
    * emits a case-insensitive "greater than or equals" predicate.
    * @param pColumnName
    * @param pValue
    void isGreaterThanOrEqualToIgnoringCase(String pColumnName, Object pValue)
    appendColumnUpper(pColumnName);
    appendGreaterThanOrEqualTo();
    appendValueUpper(pValue);
    * builds a "select" statment.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @param pResult
    private void select(String pQualifierName, String pTableName, AbstractEntityCondition pCondition, AbstractEntityResult pResult)
    // this statment only reads from the DB
    mIsReadOnly = true;
    // initialize the table stack using the selected table
    // the first push will write " FROM ..."
    pushTable(pQualifierName, pTableName);
    // build SELECT
    StringBuffer sb = new StringBuffer();
    // go over all columns
    for (int i = 0; i < pResult.mColumnNameList.size(); i++)
    // first one has command, others separate with commas
    sb.append(i == 0 ? "SELECT DISTINCT TOP 100 " : ", ");
    // get column name reference
    String aQualifiedColumnName = QualifyColumnName((String) pResult.mColumnNameList.get(i));
    // append to the statment
    sb.append(aQualifiedColumnName);
    // add to the result list
    mResultColumnList.add(aQualifiedColumnName);
    sb.append(" ");
    // insert the "SELECT ..." before the " FROM ..." that was written on the push above
    m1Buffer.insert(0, sb);
    // do WHERE
    if (pCondition != null)
    m2Buffer.append(" WHERE ");
    // will add to both "FROM..." in first buffer and to "WHERE ..." in second buffer
    // this call does most of the hard work, and handles joins to other tables, etc.
    appendCondition(pCondition);
    // do ORDER BY
    for (int i = 0; i < pResult.mOrderByList.size(); i++)
    m2Buffer.append(i == 0 ? " ORDER BY " : ", ");
    // column name
    String aQualifiedColumnName = QualifyColumnName((String) pResult.mOrderByList.get(i));
    // direction (ASC or DESC)
    m2Buffer.append(aQualifiedColumnName).append(" ").append(pResult.mOrderByDirectionList.get(i));
    popTable();
    * is currently identical to "select"
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    * @param pResult
    private void distinct(String pQualifierName, String pTableName, AbstractEntityCondition pCondition, AbstractEntityResult pResult)
    select(pQualifierName, pTableName, pCondition, pResult);
    * builds a "count(*)" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    private void count(String pQualifierName, String pTableName, AbstractEntityCondition pCondition)
    // this statment only reads from the DB
    mIsReadOnly = true;
    // initialize the table stack using the selected table
    // the first push will write " FROM ..."
    pushTable(pQualifierName, pTableName);
    // build and insert "SELECT ..." before the " FROM ..." that was written on the push above
    m1Buffer.insert(0, "SELECT COUNT(*) ");
    // do WHERE
    if (pCondition != null)
    m2Buffer.append(" WHERE ");
    // will add to both "FROM..." in first buffer and to "WHERE ..." in second buffer
    // this call does most of the hard work, and handles joins to other tables, etc.
    appendCondition(pCondition);
    // finished with this table
    popTable();
    private void insert(String pQualifierName, String pTableName, Map pValueMap)
    // m1Buffer.append("set identity_insert " + pTableName + " off "+ " ").append("INSERT INTO ").append(QualifyTableName(pQualifierName, pTableName)).append(" (");
    m1Buffer.append("INSERT INTO ").append(QualifyTableName(pQualifierName, pTableName)).append(" (");
    m2Buffer.append(" VALUES (");
    // go over all values
    boolean isNotFirst = false;
    for (Iterator i = pValueMap.keySet().iterator(); i.hasNext();)
    if (isNotFirst)
    m1Buffer.append(", ");
    m2Buffer.append(", ");
    isNotFirst = true;
    String aColumnName = (String) i.next();
    // add the column name to the first part
    m1Buffer.append(aColumnName);
    // add a "?" to the second part, as well as adding the value to the parameter list
    if(pValueMap.get(aColumnName)!= null) {
    //Object column= pValueMap.get(aColumnName);
    aColumnName=aColumnName.replace( '\'', '`');
    m2Buffer.append("'");
    m2Buffer.append(pValueMap.get(aColumnName));
    m2Buffer.append("'");
    } else {
    m2Buffer.append(pValueMap.get(aColumnName));
    m1Buffer.append(")");
    m2Buffer.append(")");
    * builds a key-retrieval statement.
    //* @param pTypeName
    protected void identity(String pTypeName)
    m2Buffer.append("SELECT CAST( @@IDENTITY AS "+ pTypeName + ")" );
    private void update(String pQualifierName, String pTableName, Map pValueMap, AbstractEntityCondition pCondition)
    m1Buffer.append("UPDATE ").append(QualifyTableName(pQualifierName, pTableName)).append(" SET ");
    // go over all values
    boolean isNotFirst = false;
    for (Iterator i = pValueMap.keySet().iterator(); i.hasNext();)
    if (isNotFirst)
    m1Buffer.append(", ");
    isNotFirst = true;
    String aColumnName = (String) i.next();
    // add the column name to the first part
    m1Buffer.append(aColumnName);
    m1Buffer.append(" = ");
    // add a "?" to the second part, as well as adding the value to the parameter list
    if((pValueMap.get(aColumnName)) == null) {
    m1Buffer.append(pValueMap.get(aColumnName));
    // System.out.println("NUll values are= " + pValueMap.get(aColumnName));
    } else{
    m1Buffer.append("'");
    m1Buffer.append(pValueMap.get(aColumnName));
    m1Buffer.append("'");
    //System.out.println("Not Null values ARE*********" + pValueMap.get(aColumnName));
    // do WHERE
    if (pCondition != null)
    m2Buffer.append(" WHERE ");
    // this will normally be a key condition (one row updated at a time)
    appendCondition(pCondition); // will add to "WHERE ..." clause
    * builds a "delete" statement.
    * @param pQualifierName
    * @param pTableName
    * @param pCondition
    private void delete(String pQualifierName, String pTableName, AbstractEntityCondition pCondition)
    m1Buffer.append("DELETE FROM ").append(QualifyTableName(pQualifierName, pTableName));
    // do WHERE
    if (pCondition != null)
    m2Buffer.append(" WHERE ");
    // this will normally be a key condition (one row deleted at a time)
    appendCondition(pCondition); // will add to "WHERE ..." clause
    * will get and save a unique (to this statment) correlation name of the given table
    * to be used in the WHERE clause. This is in case the same table joined to
    * more than once in the same query.
    * @param pTableName
    * @return
    private String getCorrelationName(String pTableName)
    String aCorrelationName = pTableName;
    while (mReferenceSet.contains(aCorrelationName))
    aCorrelationName = aCorrelationName + "_OTHER";
    mReferenceSet.add(aCorrelationName);
    return aCorrelationName;
    * will prepend the qualifier (if any) to the table name.
    * @param pQualifierName
    * @param pTableName
    * @return
    private static String QualifyTableName(String pQualifierName, String pTableName)
    return (pQualifierName == null ? "" : pQualifierName + ".") + pTableName;
    * will make the given table the current table for parts of the expression below the current node.
    * This is used anytime a join is needed.
    * @param pQualifierName
    * @param pTableName
    private void pushTable(String pQualifierName, String pTableName)
    String aCorrelationName = getCorrelationName(pTableName);
    String aTableDeclaration = QualifyTableName(pQualifierName, pTableName) + " " + aCorrelationName;
    m1Buffer.append(m1Buffer.length() == 0 ? " FROM " : ", ");
    m1Buffer.append(aTableDeclaration);
    mTableList.add(aTableDeclaration);
    mTableStack.addFirst(aCorrelationName); // push
    * will revert to the previous current table. This is used after a join is finished building.
    private void popTable()
    mTableStack.removeFirst(); // pop
    * gets the table at the top of the stack.
    * @return
    private String getCurrentTable()
    return (String) mTableStack.getFirst();
    * will qualify the given column name with the name of the current table.
    * @param pColumnName
    * @return
    private String QualifyColumnName(String pColumnName)
    if (SELECT.equals(mStatementType))
    return getCurrentTable() + "." + pColumnName;
    return pColumnName;
    * will qualify the column name and append it to the second buffer.
    * @param pColumnName
    private void appendColumn(String pColumnName)
    m2Buffer.append(QualifyColumnName(pColumnName));
    * will qualify the column name and append it to the second buffer, adding the "UPPER" function.
    * @param pColumnName
    private void appendColumnUpper(String pColumnName)
    appendUpper();
    appendOpening();
    appendColumn(pColumnName);
    appendClosing();
    * will append "?" to the second buffer and add the value to the parameter list,
    * or append "NULL" if the value is null.
    * @param pValue
    private void appendValue(Object pValue)
    if (pValue == null)
    m2Buffer.append("NULL");
    else
    m2Buffer.append("?");
    mParameterList.add(pValue);
    * will append "?" to the second buffer and add the upper-cased value to the parameter list,
    * or append "NULL" if the value is null.
    * @param pValue
    private void appendValueUpper(Object pValue)
    appendValue(null == pValue ? null : pValue.toString().toUpperCase());
    * will append the condition to the statement. This initiates a series of calls that walks
    * the expression tree and builds the SQL accordingly by calls back to methods of this class.
    * @param pCondition
    private void appendCondition(AbstractEntityCondition pCondition)
    pCondition.buildPredicate(this);
    * appends a true condition.
    private void appendTrue()
    m2Buffer.append("1=1");
    * appends a false condition.
    private void appendFalse()
    m2Buffer.append("1=0");
    * appends an opening parenthesis.
    private void appendOpening()
    m2Buffer.append("(");
    * appends a closing parenthesis.
    private void appendClosing()
    m2Buffer.append(")");
    * appends "is null".
    private void appendIsNull()
    m2Buffer.append(" IS NULL");
    * appends "is not null".
    private void appendIsNotNull()
    m2Buffer.append(" IS NOT NULL");
    private void appendAnd()
    m2Buffer.append(" AND ");
    private void appendOr()
    m2Buffer.append(" OR ");
    private void appendNot()
    m2Buffer.append("NOT ");
    private void appendLike()
    m2Buffer.append(" LIKE ");
    private void appendBetween()
    m2Buffer.append(" BETWEEN ");
    private void appendEqualTo()
    m2Buffer.append(" = ");
    private void appendNotEqualTo()
    m2Buffer.append(" <> ");
    private void appendLessThan()
    m2Buffer.append(" < ");
    private void appendLessThanOrEqualTo()
    m2Buffer.append(" <= ");
    private void appendGreaterThan()
    m2Buffer.append(" > ");
    private void appendGreaterThanOrEqualTo()
    m2Buffer.append(" >= ");
    * appends the upper-casing function.
    private void appendUpper()
    m2Buffer.append("UCASE");
    * constructs the final SQL expression, builds a prepared statement with it,
    * and fills the prepared statement with the parameter values.
    * @param pConnection
    * @return
    * @throws SQLException
    PreparedStatement generatePreparedStatement(Connection pConnection) throws SQLException
    pConnection.setReadOnly(mIsReadOnly);
    String sql = m1Buffer + " " + m2Buffer;
    System.out.println("GENERATED SQL = ");
    System.out.println(sql);
    System.out.println("GENERATED SQL = ");
    System.out.println(sql);
    System.out.println("PARAMETER LIST = ");
    System.out.println(mParameterList);
    PreparedStatement aPreparedStatement = pConnection.prepareStatement(sql);
    for (int i = 0; i < mParameterList.size(); i++)
    aPreparedStatement.setObject(1 + i, mParameterList.get(i));
    return aPreparedStatement;
    * is an enumerated type.
    private static final class StatementType extends AbstractType
    private StatementType(String pType)
    super(pType);
    [i]package firstpro.persistence;
    import multnomah.database.ConnectionPool;
    import java.sql.*;
    import java.util.Date;
    import java.util.*;
    * is the abstract base class for all generated entity classes.
    * It encompasses all functionality not specifically tied to a given field.
    public abstract class AbstractEntity
    * contains all "open" entities in the system.
    * This is to insure that two threads cannot update the same entity at the same time.
    * It is a weak hash map, so that entries do not prevent garbage collection if something is left open.
    static Map sOpenEntityMap = new WeakHashMap();
    * is true when the entity represents a row in a table
    boolean mIsBacked = false;
    * is true when the entity is in a state that allows updating
    boolean mIsMutable = false;
    * contains the values that exist in the underlying row

  • Problems with Gummiboot (does not find Windows)

    Hello All,
    Today I'm in Spain installing Arch to my parents. Unfortunately I'm not able to make Gummiboot to find Windows 8...
    For sure it's my fault and I made something wrong...
    Can someone help me with this please? I will leave tomorrow morning but I still have access remotely to the computer).
    [angarrub@myArchEsp ~]$ lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 465,8G 0 disk
    ├─sda1 8:1 0 350M 0 part /run/media/angarrub/Reservado para el sistema
    ├─sda2 8:2 0 230,4G 0 part /run/media/angarrub/Nuevo
    ├─sda3 8:3 0 1G 0 part /boot
    ├─sda4 8:4 0 50G 0 part /
    ├─sda5 8:5 0 175G 0 part /home
    └─sda6 8:6 0 9G 0 part [SWAP]
    I'm quite sure that the problem is that I created another EFI partition (for not touching anything from Windows installation) and installed Gummiboot there. I would like to know what to do to create the entry for Windows and boot normally from /dev/sda1.
    Please, do not hesitate to ask me whatever you need meto fix this.
    Thanks a lot in advance.
    Best regards,
    TheArcher

    ackt1c wrote:
    Take a look into syslinux, very easy to use, not visually stimulating, but effective.
    https://wiki.archlinux.org/index.php/Syslinux
    Windows MBR
    bcdedit /create /d “Linux” /application BOOTSECTOR
    bcdedit /set {ID} device partition=c:
    bcdedit /set {ID} path \linux.bin
    bcdedit /displayorder {ID} /addlast
    bcdedit /timeout 30;
    Keep in mind you'll have to set your Windows Device to Bootable not your Syslinux boot device.
    Syslinux
    pacman -S syslinux # or pacstrap syslinux base base-devel /w installation
    nano /boot/syslinux/syslinux.cfg # LABEL arch >> root=/dev/sda[X] X being your linux root device
    syslinux-install_update -i -a -m;
    mkdir /mnt/sda[Y] # Y being your Windows HD Device
    mount /dev/sda[Y] /mnt/sda[Y] # Y being your Windows HD Device
    dd if=/dev/sda[X] of=/mnt/sda[Y]/linux.bin bs=512 count=1 # X being your linux BOOT device && Y being your Windows HD Device
    Writeout your linux boot partition to your Windows HD, again having your Windows MBR device as bootable in cfdisk not your linux boot device.
    [X] and [Y] should translate to a number.
    Of course this is backwards, using windows to boot linux.
    Hope that helps.
    Ok, so if I understood everything ok... in that HD with both EFI partitions I should:
    uninstall grub/gummiboot
    install syslinux on /dev/sda1
    configure two entries: one for arch /dev/sda3 and the second for Windows on /dev/sda1
    And should work?
    And... one question... I was trying to mount the 350mb partition (windows one, /dev/sda1) but I couldn't find the efi files... maybe I was doing something wrong because the only things that looks like a boot files are inside windows/boot folder...
    I can try to connect remotely and check it later if you need more information.
    Thanks a lot, really, best community ever!
    Regards,
    TheArcher

Maybe you are looking for