Does key comparison work for character arrays?

I am using the berkeley db(C) to store a 2-column table with key as a character array(not strings). Even though I can see that a record is present when i display all records, I cant get that record using the get function with the correct key. Is there a problem with key comparison? How does berkeley db check two keys for equality? Is there a way around this?
thanks in advance.

Hi,
Your code posting was messed up due to the indexed addressing (the i in square brackets) which is in fact the italic start tag. You can put some spaces inside the square brackets, and make sure to enclose your source code between pre tags ([ pre ] <code goes here> [ / pre ], remove the spaces).
So, I assume you are trying to store a line of the bi-dimensional char array.
     key.data = a + i;          
     key.size = sizeof(a[ i ]);
// char *aa = "0a0s0d0f0g0h0j0k0l0q0w0e0r0t0y0f";(I've changed the name of this pointer to distinguish it from the array)
aa points to a sequence of chars (a string in fact) that should be the same as the ones in the line of the bi-dimensional char array, line that was stored as key in the database, right?
key.data = aa;
key.size = sizeof(aa);Now, here is the problem. aa is a pointer to char, thus sizeof(aa) is 2B or 4B (depending on the pointer type, near or far) on a 32-bit machine. So, you're performing the search looking only for the match of the first 2 or 4 chars. Change that line to key.size = strlen(aa); or key.size = sizeof(*(a + i)); (the same as key.size = sizeof(a[ i ]);, a being the char array).
Regards,
Andrei

Similar Messages

  • Does hdmi adapter work for ipad 1 ?

    does hdmi adapter work for ipad 1 ? having trouble streaming an app (Big ten network to go) onto my tv with video and sound, does hdmi adapter work for ipad 1 ? having trouble streaming an app (BTN2Go) onto my tv with video and sound

    jmyork wrote:
    does hdmi adapter work for ipad 1 ? having trouble streaming an app (Big ten network to go) onto my tv with video and sound, does hdmi adapter work for ipad 1 ? having trouble streaming an app (BTN2Go) onto my tv with video and sound
    It worked perfectly for me for a year until I replaced it with Apple TV.
    Having said that, I can't guarantee that it will work with every app.  Give it a shot and try it immediately.  If it doesn't work with the app(s) that are important to you, return it for a refund.
    By the way, I did find that the Apple TV does support every app that the cable did but no additional apps.  Although it does have other bennies, for this purpose it's an "electronic cable."

  • Does photography plan work for multiple computers?

    does photography plan work for multiple computers? like with 1 account.

    Cloud License allows 2 activations http://www.adobe.com/legal/licenses-terms.html
    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0
    -Windows or Mac does not matter... 2 on the same operating system, or 1 on each
    -Both computer Cloud subscriptions may not be in use at the same time

  • HT4557 Does home sharing work for apps? The instructions make it sound as though home sharing really only allows you to stream content.

    Does home sharing work for apps? My young son received iPad mini for Christmas, and I don't want him to have to repurchase the games and other raps I'd already bought for him that are resident on my iPad.

    does Home Sharing allow you to copy any item begtween libraries, including CDs you have ripped yourself
    It certainly allows you to copy ripped CDs. Just did that myself last week.

  • I know I am a luddite but if I am streaming content on my Ipad from a TV station can I get it to appear on Apple TV or does it only work for things in my itunes library?

    I know I am a luddite but if I am streaming content on my Ipad from a TV station can I get it to appear on Apple TV or does it only work for things in my itunes library?

    Welcome to the Apple Community.
    Websites and third party Apps need enabling before they will allow AirPlay of Video content. Some Website/App developers have not enabled their products, some simply haven't got around to it yet, others have stated that they won't be enabling AirPlay (likely as a result of licensing issues).
    I have created a User Tip to list Apps that have been tested with Video Airplay, if you have any Apps that you have tested please leave details in the comments at the bottom of the User Tip or email me if you don't have commenting privileges.

  • Why does GarageBand audio work for guest user but not my account?

    Hello, I have a 15-inch MacBook Pro (2.2 GHz Intel Core i7, 4GB 1333 MHz DDR3) from late 2011 that I bought brand new in 2012. I'm running OS X Mavericks 10.9.4 and my MacBook has 500 GB of storage.
    About a month or two ago I tried to download the new GarageBand (10.0.2) but I had trouble completing the loops download. The download would stop halfway through because of a network error. So last week I decided to try to download it again, and I was able to do so after reading some discussions about the issue. I successfully completed the download in safety mode and then I restarted my MacBook. At this point I was able to open GarageBand 10.0.2 and create a new project. Unfortunately, there was no audio coming through the output and sound bar for the various audio components in GarageBand. I had no audio when previewing the loops or playing it back in an audio track. I didn't really test anything else out because I figured I needed to fix this problem first. I have read many discussion boards about audio problems with GarageBand. I have already made sure everything is set properly in the GarageBand preferences and the audio preferences in system preferences. I've tried restarting GarageBand and restarting the computer.
    This evening I found a discussion from the username icewhatice and they seemed to have had my exact problem. I'm not sure that I found the answer on this discussion though. For reference, this is what icewhatice posted: "I have no audio coming from Garageband 10.0.2. Downloaded it on Saturday and have spent the last two days trying to figure out why it won't work. I'm using a macbook pro with an Alesis QX49. GB registers keyboard when I plug it in but no sound whatsoever, not even from the onscreen keyboard. It seems to read the keyboard as if I play a C chord, it appears in the display. I've done all the obvious stuff like check preferences, restart, I've deleted and downloaded new GB several times and always with same result. Actually, it took me about four attempts to download it in the first place as I was getting an internet connection error message right at the end of the download, and I see others have had that problem. Managed to solve that by downloading in safe mode but now the no sound thing is driving me absolutely crazy because I can't play my keyboard!!!!! Also, worth noting that there is no audio level being read anywhere, I believe in the new version this appears in the volume control at the top. I've also looked into it potentially being a problem with my keyboard and it possibly needing an update but can't find any difinitive answer for that anywhere. I've stopped looking into that because the on screen keyboard doesn't even work - if that worked then I would know at least GB works and it's something to do with the keyboard. So, I am at a complete loss. If anyone has any ideas about why this is happening or what I could do to solve then I would be very grateful."
    After reading this, I realized that I am unable to create new tracks, and I realized that I have the same problems with old projects saved from the last version of GarageBand I had. I have not tried to download GarageBand again since it did not work for icewhatice. léonie ended this post by saying: "Something is certainly wrong - either the current project, some settings in your user account, or the downloaded GarageBand version. Or incompatible software may be interfering. If a new project does not work, try to test by logging into a different user account, for example the "Guest User" account. Create a new project using this account. Does GarageBand work better from this account?  Then we will need to troubleshoot your preferences."
    I have tried this and started a new GarageBand project in the "Guest User" account. GarageBand was working fine in the "Guest User" account and all of the audio was working properly. Does anyone know how I should troubleshoot my preferences?

    If an application is working in a different account, but not in your regular account,try t find out, what you configured differently in your own account, for example start-up items or preference panes you are using, applications and other helper tools, that are only installed for your regular account. As a first guess, remove GarageBands preference files from the user library in your Home folder.
    But you will have to reset all settings you did in the GarageBand preferences dialog. And GarageBand will not remember the last project. You'll have to find the file manually.
    Remove these files from your User Library to a folder on your Desktop:
    ~/Library/Containers/com.apple.garageband10/
    ~/Library/Preferences/com.apple.garageband.plist
    ~/Library/Caches/garageband
    Quit GarageBand, then remove the files to a folder on the Desktop and restart the computer, before trying again to open GarageBand.
    You user library may still be hidden, as is the default in Mavericks: To open your hidden user library:
    Select the "Home" folder icon (the little house)  in the Finder's sidebar and press the key combination ⌘J to open the "view options".
    Enable "Show Library Folder".
    Then open the Home folder and open the Library folder inside and navigate to the Preferences, Caches, or Containers folder. Remove these folders completely - don't leave anything inside:  ~/Library/Containers/com.apple.garageband10/,
    ~/Library/Caches/garageband  .

  • Some keys stopped working for one user account

    Dear all,
    since a while (I can't say since when exactly) some of the keys stopped working: left control, left shift, and the tab key. In the beginning the caps lock didn't work as well, but it was my own setting. All other then the three listed work OK. As described in some KB articles I checked all settings for universal access, localisation, keyboard, mouse, and keyboard-shortcuts (all standard). I completely disassembled the keyboard (aprox. 50 screws!) cleaned it and checked the connections between the keys on the printed circuit. Everything looks good. Then my wife told me that she does not have the problem and indeed, in other user accounts it is all working OK. It means that it should be a setup problem in my profile. The keyboard viewer is showing every activated (pressed) key, but not the three that are not working - which is only consequent. When I disable the caps-lock then the keyboard viewer doesn't show this key being pressed either. My conclusion is that there must be a keyboard filter below the application level. Now I'm stuck.
    Help appreciated!
    Cheers,
    Kurt.
    Message was edited by: killtheclock

    Yup, odds were against me choosing the right item on the first go
    Log back into your problem account.
    Here's the whole litany for thoroughly checking your home folder. It's not as daunting as it looks.
    1. Go to Users/yourname//Library/Fonts - drag this folder to the desktop.
    • Restart and test your applications.
    • If they work start adding the fonts back few at a time.
    ( Likely suspects are Times RO, Helvetica Fractions and Times Phonetic, also if you do not use Classic you can trash the classic fonts.) If not, put your Fonts folder back.
    2. Check Preferences Thoroughly;
    • Go to ~(YourHome/Library/Preferences drag this folder to the desktop.
    • Restart and test your applications.
    • If this works, save the old preferences folder somewhere else or on disk, name it "old prefs" .
    ** Note: A very important file is the "com.apple.Mail.plist" preference file located in the Preferences folder which contains all email account settings and general mail preferences (hold this one and replace if your problem is not with Mail).
    You'll have to go through some of your System Preferences and apps to set the preferences back to how you like them. (Or if you have the time and inclination, "cherry pick" through until you find the problem one or two.)
    3. Check Permissions Inside Home Folder
    • Navigate to YourHome/Library.
    • Get Info (Command - i) on folders for apps you are having problems with.
    • Open the "Ownership & permissions" disclosure triangle.
    • Make sure you are the owner, with "read and write" access.
    • Click on "apply to all"
    • If this is correct, open the "Applications Support" folder and do the same procedure (Command+I) for the folders with the names of the applications you are having trouble with.
    (Note:The reason to check this is because repairing permissions with Disk Utility doesn't touch permissions inside your home folder.)
    4. Navigate to YourHome/Library/Caches and drag this folder to the trash, then log out and back or restart. There is no need to replace this folder.
    -mj

  • Apple Mail specific domain domain \ username does this still work for Mavericks?

    THIS DISCUSSION IS ARCHIVED
    Where do I include Exchange domain in Mail setup?
    10212 Views 8 Replies Latest reply: Aug 18, 2010 2:37 PM by jruano  
    Level 1 (10 points) 
    mike_donahue 
    Jun 2, 2010 4:46 PM 
    Our company is running Exchange 2007, OWA enabled, EWS is setup, Auto discovery is enable. The only thing I haven't got an answer on is whether Service Pack 4 has been installed. The server is set up with a domain specified but I don't know where to include that in the Mail Account Setup. Mail seems to be locating the server fine but it says username or password can not be verified. I can only assume that it's because I haven't included the domain correctly.
    iPad (and I assume iPhone/iTouch) have a field in their setup to include the domain and a coworker is connecting fine with to the company server. Where is it in Mail? I have tried to prepend it to my username (domain/username) but it hasn't worked. I can't recall all the variations I have tried of this, but unless I have the domain first in the username field, Mail won't even connect to the server. I've been all over these boards and dozens more and I can't find any answers to this problem.
    Any here have any ideas? Thanks,
    Mike D 
    MacBook Pro, Intel Core 2 Duo 2.66 GHz, Mac OS X (10.6.3), 4 gig RAM
    I have this question too (0) 
    Categories: Mail and Address bookTags: mail_address_book_macosx_v10.6, mac_os_x_v.10.6
    Level 7 (22,080 points)
    Matthew Morgan Los Angeles, CA
    Re: Where do I include Exchange domain in Mail setup?Jun 2, 2010 5:48 PM (in response to mike_donahue) 
    Here's an article that may help.
    http://support.apple.com/kb/HT3748
    MattDual 1.8 GHz G5 2.5 GB RAM/MBP 2.26GHz 2GB RAM/iPod nano 4g/iPhone 3GS, Mac OS X (10.6.2), ATI Radeon 9600, Time Capsule, AirPort Express
    Like (0) 
    Level 1 (10 points)
    mike_donahue
    Re: Where do I include Exchange domain in Mail setup?Jun 2, 2010 9:01 PM (in response to Matthew Morgan) 
    I already read that one and it fails to address the domain question, but thank you for the suggestion.
    MikeMac OS X (10.6.3)
    Like (0) 
    Level 1 (10 points)
    mike_donahue
    Re: Where do I include Exchange domain in Mail setup?Jun 6, 2010 5:07 PM (in response to mike_donahue) 
    Bump.
    I still haven't found an answer to this. Anyone else have any ideas. Still waiting to hear back from out IT guys about the service pack issues.
    Is there any way to attach a screen grab to a post? Thought it might help paint the picture in case I haven't stated it clearly.
    Again, thanks in advance for any help with this.
    MikeMacBook Pro, Intel Core 2 Duo 2.66 GHz, Mac OS X (10.5.1), 4 gig RAM
    Like (0) 
    Level 1 (0 points)
    tf99
    Re: Where do I include Exchange domain in Mail setup?Jun 22, 2010 1:00 PM (in response to mike_donahue) 
    Hi. I'm having precisely the same problem. My Exchange account works like a charm on my iPhone, but all permutations of the same settings simply don't work in OS X Mail (v. 4.3).
    Has anyone out there set up an Exchange account with a domain? Can you tell us where you put it to get the account to work?
    Thanks!2.0 GHz MacBook, Mac OS X (10.6.4)
    Like (0) 
    Level 4 (2,535 points)
    Asatoran
    Re: Where do I include Exchange domain in Mail setup?Jun 22, 2010 1:16 PM (in response to mike_donahue) 
    Enter your username as:
    <domain>\<username>
    This is standard practice for Microsoft if there's no place to enter the domain name.
    (Note the backslash, not the forward slash. Backslash is NOT the one under the question mark on a U.S.A. English keyboard.)MBP 15" Penryn, Mini 2009, Mac OS X (10.6.2)
    Like (0) 
    Level 1 (0 points)
    tf99
    Re: Where do I include Exchange domain in Mail setup?Jun 22, 2010 1:42 PM (in response to Asatoran) 
    Thanks Asatoran. That turned out to be part of the solution for me. The other part was changing the port I used for the SSL connection -- it was set wrong at some point, either because the default was wrong, or because I forgot I had changed it in troubleshooting before trying the slash the way you suggest. Anyway, the port number for some reason doesn't show up on my iPhone settings, so it didn't occur to me to tweak it.2.0 GHz MacBook, Mac OS X (10.6.4), 4GB RAM
    Like (0) 
    Level 1 (0 points)
    frieiv
    Re: Where do I include Exchange domain in Mail setup?Jun 25, 2010 12:06 PM (in response to tf99) 
    Hi!
    Could you please state the port numer you changed from and to?
    I´m having the same problem and still can´t access the exchange server outside the company network.
    But it seems like Mail 4.3 tryes to use the internal server and never the external? Any tips on this?MacBook Pro, Mac OS X (10.6.4)
    Like (0) 
    Level 1 (0 points)
    jruano
    Re: Where do I include Exchange domain in Mail setup?Aug 18, 2010 2:37 PM (in response to mike_donahue) 
    <domain>\<username> worked for me... FINALLY!!
    Thanks muchMacBook Pro, Mac OS X (10.6.4), iMac

    Quit your mail entirely, then in terminal do:  
    mv ~/Library/Mail/V2/MailData/Envelope* ~/Desktop 
    This moves all your "Envelope Index*" files to your desktop.  An alternative is deleting the files, but this allows you to keep them as a temporary back-up (you can delete them at-will later).  Also, you can move the files from Finder instead of Terminal, if you prefer. 
    After the files have been moved, re-open Mail
    This should re-load all your email messages, updating/restoring the count
    While this works, it does not explain the reason the count goes missing, nor does it ensure that the count won't go missing again in the future, but at least it's a temporary workaround.

  • Problem: Why does this only work for powers of 2?

    I wrote this program to create a golf league schedule for, ideally, eight players. However I want it to be flexible enough to permit for other denominations, such as 10 or 12. When I run the program it works perfectly for any number that is a power of 2 (2,4,8,16,32,etc...) but it will not work for other even numbers such as 6,10, or 12. If anyone has any insights it would be most helpful.
    *(This is my first post on this forum so if anything looks not quite right or if this post isn't worded exactly how it should be then I apologize in advance)*
    Here's the three classes.
    public class ScheduleDriver
         public static void main(String[] args)
                              //instance variables
              int max;     //size of flight matches array
              ScheduleMaster master;//instance of class
              //get max number of players for flight
              System.out.print("Max number of players in this flight:");
              max = Keyboard.readInt();
              master = new ScheduleMaster(max);
              //create weekly schedules for season
              master.createSchedule();
              //display weekly schedules
              master.displayWeekly();
         }//end main
    }//end ScheduleDriver
    public class ScheduleMaster
         //instance variables
         int maxPlyrs;//maximum number of players in flight
         Week[] weeklySchedule;//array of weekly matches
         public ScheduleMaster(int plyrs)
              //set up instance data and declare array size
              maxPlyrs = plyrs;
              weeklySchedule = new Week[plyrs];
              //set up the size of each week's matches array
              for (int pos = 0; pos < plyrs; pos++)
                   weeklySchedule[pos] = new Week(plyrs);
              }//end for
         }//end constructor
         public void createSchedule()
              int count = 0;//index of weeklySchedule array
              final int QUIT = -1;     //quit value for loop
              int flag = 0;     //value to continue or exit loop
              //for each player A
              for (int a = 1; a < maxPlyrs; a++)
                   //for each opponent of player A
                   for (int b = (a + 1); b <=maxPlyrs;b++)
                        //set count/index and       reset flag to zero
                        count = (a - 1);
                        flag = 0;
                        //while still haven't found correct week for this match
                        while (flag != QUIT)
                             //if at least one of these players are already scheduled
                             //for a match this week
                             if (weeklySchedule[count].checkPlayers(a,b) == true)
                                  //if last valid index of array has been reached
                                  if (count == (maxPlyrs - 2))
                                       //reset count/index to zero
                                       count = 0;
                                  else
                                       //incriment count
                                       count++;
                             }//end if
                             else
                                  //assign this match to array of matches for week
                                  //and then exit loop
                                  weeklySchedule[count].setMatch(a,b);
                                  flag = -1;
                             }//end else
                        }//end while
                   }//end for
              }//end for
              //fill in last week/position night
              for (int pos = 0; pos < maxPlyrs;pos++)
                   //set up position match
                   weeklySchedule[maxPlyrs - 1].setMatch(pos + 1, pos + 2);
                   //incriment pos
                   pos++;
              }//end for
         }//end createSchedule
         public void displayWeekly()
              //for each week in schedule
              for (int pos = 0; pos < maxPlyrs;pos++)
                   //display header
                   System.out.print("WEEK " + (pos + 1));
                   //if pos/index is 0 or even, flight plays front 9
                   if ((pos % 2) == 0)
                        System.out.println(" [FRONT 9]");
                   //else flight plays back 9
                   else
                        System.out.println(" [BACK 9]");
                   //display lines
                   System.out.println("----------------");
                   //display week's matches
                   weeklySchedule[pos].display();
                   //skip a line
                   System.out.println("\n");
              }//end for
         }//end displayWeekly
    }//end ScheduleMaster
    public class Week
         int[] schedule;          //array of players involved in matches for week
         int max;               //max number of players
         int count = 0;          //number of players currently involved in matches
         public Week(int size)
              //set up instance data and size of array
              max = size;
              schedule = new int[size];
         }//end constructor
         public boolean checkPlayers(int playerA, int playerB)
              boolean flag = false;     //flag to determine if at least one of
                                            //the players to check are already playing
                                            //this week
              //for each element of array
              for (int pos = 0; pos < max; pos++)
                   //if player A matches player already playing this week
                   if (schedule[pos] == playerA)
                        flag = true;
              }//end for
              //for each element of array
              for (int pos = 0; pos < max; pos++)
                   //if player B matches player already playing this week
                   if (schedule[pos] == playerB)
                        flag = true;
              }//end for
              return flag;
         }//end checkPlayers
         public void setMatch(int playerA, int playerB)
              //if array can take more matches
              if (count <= (max - 2))
                   //insert players into array of active players for week
                   schedule[count] = playerA;
                   schedule[count + 1] = playerB;
                   //incriment count of players playing this week by 2
                   count = count + 2;
              }//end if
              else
                   System.out.print("No more matches can be entered!!!");
         }//end setMatch
         public void display()
              //for every even numbered index starting at zero
              for (int num = 0;num < max;num++)
                   //display the player at that position and the next consecutive
                   //player who will be his opponent for the week
                   System.out.println(schedule[num] + "VS" + schedule[num + 1] +
                   //incriment num
                   num++;
              }//end for
         }//end display
    }//end Week

    Ah, I have discovered the problem. The reason for the infinite loop was because of the resetting of the counter/index after every successful match entry back to (a - 1). This was causing matches to be put into weeks where they didn't belong, which caused the program to infinitely loop because it couldn't find an appropriate week to place it's next match. The only time the count should be reset back to zero is when a new player A is being processed or the last valid array index has been referenced before an out of bounds exception would be thrown. I'm still not entirely sure why this doesn't occur on powers of 2 but theh again I haven't put too much thought into it having solved the initial problem! :)
    Anyways thanks for the input all who posted, much appreciated.
    Happy programming!!!!

  • Satellite A50-112: F1 key not work for entering Bios

    my toshiba Satellite SA50-112 not entering into BIOS or CMOS setup because of F1 key is not functioning what i can do for changing the boot sequence to CDROM by alternative way.
    please help us to work better

    There are THREE ways to make your notebook boot from CD:
    1) You can adjust the BIOS setting by entering into it with the key "ESC" (not F1 as you said before)
    2) You can boot directly on CD by holding down the key "C" during starup
    3) You can make the "Select Boot device menu" appear by holding down the "F12" key.
    All above key combinations work DURING STARTUP of your notebook only. Therefor try your timing ;)
    Good luck :)
    electrochain

  • Does br Not work for Safari Browser?

    Using Safari on Vista
    If you look here http://www.banquettables.pro/ When you add an item to the cart, there is a shopping cart that appears using ajax in the right column.
    THIS Text Below shows up.
    You may checkout online securely, or call and order 866-290-0813
    We Accept Visa, MC, Discover, and AMEX.
    BUT the thing is , there is a
    between the 2 sentences to make a space. This works in all browsers but safari.
    Does
    NOT work for safari?

    A BR tag just makes a line break, not an extra space between lines. It seems to be working fine in Safari. Perhaps a paragraph break <p /> i s what you want.

  • Does this video work for everyone?

    my client is telling me the video on the home page doesn't
    work. it works fine for me. can everyone test it and tell me if its
    not working for you? and if not, what computer, os, browser you are
    using?
    http://www.mrrogershood.com
    thanks in advance,
    brad

    I don't know, but it works fine for me. I suspect changing
    the keyframe was
    important. But then I'm not a Flash expert. One thing you
    might do is make
    sure the client RELOADS the page so they're not seeing the
    cached old page.
    Also, the needs to be clicked twice, once to activate it, the
    other to start
    it. Maybe they're not doing that?
    Just some thoughts.
    MD
    Brhaynes75 wrote:
    > it works now????
    >
    > now im really confused. i did do a few things though. i
    used to have
    > the website in a "test" subdirectory, maybe the video
    was forwarding
    > to that. so i just left the
    test/images/_videos/index.swf there just
    > in case. i also opened up the flash file and tweaked a
    few things.
    > like, unlocking the layers and putting the opening stop
    action on a
    > keyframe instead of just a frame. i also changed the
    parameters in
    > the flash video to point to "/images/_videos/index.swf"
    instead of
    > "
    http://www.mrrogershood.com/images/_videos/index.swf".
    maybe one of
    > those worked? but the client is still telling me it
    doesn't work. =(

  • Does JQuery DataTable work for CRM 2013 online?

    Hi,
    In CRM 2013 online, I am embedding a html WebResource to display a JQuery DataTable object in Account form.  The JQuery DataTable queries an external database thru its restful API.  Somehow, the DataTable does not display data in
    Account form.  My first question is: does JQuery DataTable work with CRM online?

    Hi, Polat-
    Thanks for your relay.  I am using JQuery DataTable ajax object to fill the html table.  It does not get data from service API.  It always goes to the error block.  What went wrong?  Thanks.
    var oData = null;
                   // Perform a synchronous oData retrieve
                   $(document).ready(function() {
                           $('#example').dataTable( {
                               "ajax": {
                                      "type": "POST",
                                      "url": oDataSelect,
                                      "data": oData,
                                      "beforeSend": function (XMLHttpRequest) {
                                          XMLHttpRequest.setRequestHeader("Accept",
    "application/json");
                                          // generate base 64 string from username
    + password                             
                                          XMLHttpRequest.setRequestHeader("Authorization",
    "Basic " + Base64.encode("xxxxxxxxxxx"));                                      
                                      "success": function (oData, textStatus, XmlHttpRequest)
                                            alert('OData Select Succeeded:
    ' + oDataSelect);                                       
                                      "error": function (XmlHttpRequest, textStatus, errorThrown)
                                          alert('OData Select Failed: ' +
    oDataSelect);
                               "columns": [
                                      { "title": "Name" },
                                      { "title": "Position" },
                                      { "title": "Office" },
                                      { "title": "Extn." },
                                      { "title": "Start date" },
                                      { "title": "Salary" }

  • Shift key not working for some letters

    Hello!
    i just got a new MacBook and just figured out that certain that the left shift key doesn't work for the top row of letters. That is q,w,e,r,t,y,u,i,o. The right bracket doesn't work with either shift key.
    After reading about the possible influence of Sound, I looked there and didn't see any conflicts.
    Is my only solution Apple? Or is there something else I can try?
    Thanks.

    yeah, the same thing is happening with me, but this time only with Shift + s.

  • HT203296 Does  virtualization  box work for mac os 10.7 Leopold/ lion & windows

    Does  virtualization  virtual box work for mac os 10.7 Leopold/ lion & windo

    I am grateful to my google search using "how to run windows-7 bootcamp in virtualbox"    .  After spending hours of trial & error on Apple, VirtualBox, Youtube & other forums by chance I hit correct words and first in the search list was most useful. It gave simpler and easier instructions than others. Guidance is in easy steps and it works great.
    https://kindlevsmac.wordpress.com/2011/10/14/how-to-run-windows-7-bootcamp-in-vi rtualbox
    san00077 wrote:
    Does  virtualization  virtual box work for mac os 10.7 Leopold/ lion & windo

Maybe you are looking for