How to make alaw_rtp's tonal quality better?

I write my own alaw Encode , Decode and Packetizer. But i have a hard problem is thar the sound is so bad.
The volume is so low and the sound have noise.
How should i do to make it better?
the code :
encode:
package media.codec.audio.alaw;
import com.ibm.media.codec.audio.AudioCodec;
import javax.media.Buffer;
import javax.media.Control;
import javax.media.Format;
import javax.media.ResourceUnavailableException;
import javax.media.format.AudioFormat;
public class JavaEncode extends AudioCodec {
    private Format lastFormat = null;
    private int inputSampleSize;
    private boolean bigEndian = false;
    public JavaEncode() {
        supportedInputFormats = new AudioFormat[]{
                    new AudioFormat(
                    AudioFormat.LINEAR,
                    Format.NOT_SPECIFIED,
                    16,
                    1,
                    Format.NOT_SPECIFIED,
                    Format.NOT_SPECIFIED),
                    new AudioFormat(
                    AudioFormat.LINEAR,
                    Format.NOT_SPECIFIED,
                    8,
                    1,
                    Format.NOT_SPECIFIED,
                    Format.NOT_SPECIFIED)};
        defaultOutputFormats = new AudioFormat[]{
                    new AudioFormat(
                    AudioFormat.ALAW,
                    8000,
                    8,
                    1,
                    Format.NOT_SPECIFIED,
                    Format.NOT_SPECIFIED)};
    @Override
    public String getName() {
        PLUGIN_NAME = "pcm to alaw converter";
        return PLUGIN_NAME;
    @Override
    protected Format[] getMatchingOutputFormats(Format in) {
        AudioFormat inFormat = (AudioFormat) in;
        int sampleRate = (int) (inFormat.getSampleRate());
        supportedOutputFormats = new AudioFormat[]{
                    new AudioFormat(
                    AudioFormat.ALAW,
                    sampleRate,
                    8,
                    1,
                    Format.NOT_SPECIFIED,
                    Format.NOT_SPECIFIED)};
        return supportedOutputFormats;
    @Override
    public void open() throws ResourceUnavailableException {
    @Override
    public void close() {
    private int calculateOutputSize(int inputLength) {
        if (inputSampleSize == 16) {
            inputLength /= 2;
        return inputLength;
    //网络上的A律编码程序...
    private void initConverter(AudioFormat inFormat) {
        lastFormat = inFormat;
        inputSampleSize = inFormat.getSampleSizeInBits();
        bigEndian = inFormat.getEndian() == AudioFormat.BIG_ENDIAN;
    public int process(Buffer inputBuffer, Buffer outputBuffer) {
        if (!checkInputBuffer(inputBuffer)) {
            return BUFFER_PROCESSED_FAILED;
        if (isEOM(inputBuffer)) {
            propagateEOM(outputBuffer);
            return BUFFER_PROCESSED_OK;
        Format newFormat = inputBuffer.getFormat();
        if (lastFormat != newFormat) {
            initConverter((AudioFormat) newFormat);
        int outLength = calculateOutputSize(inputBuffer.getLength());
        byte[] inpData = (byte[]) inputBuffer.getData();
        byte[] outData = validateByteArraySize(outputBuffer, outLength);
        pcm162alaw(inpData, inputBuffer.getOffset(), outData, outputBuffer.getOffset(), outData.length, bigEndian);
        updateOutput(outputBuffer, outputFormat, outLength, outputBuffer.getOffset());
        return BUFFER_PROCESSED_OK;
    private static final byte QUANT_MASK = 0xf; /* Quantization field mask. */
    private static final byte SEG_SHIFT = 4;
    /* Left shift for segment number. */
    private static final short[] seg_end = {
        0xFF, 0x1FF, 0x3FF, 0x7FF, 0xFFF, 0x1FFF, 0x3FFF, 0x7FFF
    private static byte linear2alaw(short pcm_val) /* 2's complement (16-bit range) */ {
        byte mask;
        byte seg = 8;
        byte aval;
        if (pcm_val >= 0) {
            mask = (byte) 0xD5; /* sign (7th) bit = 1 */
        } else {
            mask = 0x55; /* sign bit = 0 */
            pcm_val = (short) (-pcm_val - 8);
        /* Convert the scaled magnitude to segment number. */
        for (int i = 0; i < 8; i++) {
            if (pcm_val <= seg_end) {
seg = (byte) i;
break;
/* Combine the sign, segment, and quantization bits. */
if (seg >= 8) /* out of range, return maximum value. */ {
return (byte) ((0x7F ^ mask) & 0xFF);
} else {
aval = (byte) (seg << SEG_SHIFT);
if (seg < 2) {
aval |= (pcm_val >> 4) & QUANT_MASK;
} else {
aval |= (pcm_val >> (seg + 3)) & QUANT_MASK;
return (byte) ((aval ^ mask) & 0xFF);
private static void pcm162alaw(byte[] inBuffer, int inByteOffset,
byte[] outBuffer, int outByteOffset,
int sampleCount, boolean bigEndian) {
int shortIndex = inByteOffset;
int alawIndex = outByteOffset;
if (bigEndian) { //bigEndian
while (sampleCount > 0) {
outBuffer[alawIndex++] = linear2alaw(bytesToShort16(inBuffer[shortIndex],
inBuffer[shortIndex + 1]));
shortIndex++;
shortIndex++;
sampleCount--;
} else {
while (sampleCount > 0) {
outBuffer[alawIndex++] = linear2alaw(bytesToShort16(inBuffer[shortIndex + 1],
inBuffer[shortIndex]));
shortIndex++;
shortIndex++;
sampleCount--;
private static short bytesToShort16(byte highByte, byte lowByte) {
return (short) ((highByte << 8) | (lowByte & 0xFF));
//&#22686;&#21152;&#22238;&#22768;&#25233;&#21046;
@Override
public java.lang.Object[] getControls() {
if (controls == null) {
controls = new Control[1];
controls[0] = new com.sun.media.controls.SilenceSuppressionAdapter(this, false, false);
return (Object[]) controls;

the command of use alaw_rtp:
                audio_format = new AudioFormat("ALAW_RTP", 8000.0, 8, 1);
                switch (payload) {
                    case PayLoad_Ulaw:
                        try {
                            Codec[] codec = new Codec[3];
                            codec[0] = new com.ibm.media.codec.audio.rc.RCModule();
                            codec[1] = new com.ibm.media.codec.audio.ulaw.JavaEncoder();
                            codec[2] = new com.sun.media.codec.audio.ulaw.Packetizer();
                            ((com.sun.media.codec.audio.ulaw.Packetizer) codec[2]).setPacketSize(ptime * 8);
                            (tracks).setCodecChain(codec);
} catch (Exception ex) {
System.err.println("payload error:" + ex);
break;
case PayLoad_Alaw:
try {
Codec[] codec = new Codec[3];
codec[0] = new com.ibm.media.codec.audio.rc.RCModule();
codec[1] = new AlawEncoder();
codec[2] = new AlawPacketizer();
((AlawPacketizer) codec[2]).setPacketSize(ptime * 8);
(tracks[i]).setCodecChain(codec);
} catch (Exception ex) {
System.err.println("payload error:" + ex);
break;
default:
break;
tracks[i].setEnabled(true);
the voice is so bad, have noise.
Some one could tell what's wrong in my code?
Thank you very much for your share!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to make LR3 convert .erf files better [Epson R-D1s]

    How can I help Adobe make LR3 convert .erf files [Epson digtial rangefinder R-D1s raw format] better?
    After testing LR3 I have re-evaluated my policy for converting two of the three different raw-formats I use: .nef, .x3f and .erf. With the camera calibration beta 2 features for .nef files I cannot see any difference between Capture NX2 output and that of LR3 – well done. And while Sigma’s Photo Pro might still have a slight edge on absolute quality for .x3f files, LR3 has a definite advantage in minimizing (almost eliminating) the green cast problem of high ISO .x3f files. That is one very impressive result.
    But for the .erf files there is no marked improvement in LR3 over LR2 and the difference between PhotoRAW and LR3 is almost unbelievable and not to LR3’s advantage. I have tried all possible combinations of process (2003, 2010), profiles (ACR 2.4, 4.4 and Adobe standard) and color space on direct import of raw-files (.erf, .erf converted to .dng, differently sized .tiffs and jpegs) as well as all different combinations of .tiff and .jpegs (size and bit) imports via PhotoRAW and nothing in LR3 comes even close.
    The .erf files in PhotoRAW have a certain look to them [a combination of a 3D effect and a brilliance that reminds me of a high quality film transparancy] which is what users of R-D1s love and non-users cannot understand is possible to extract from a 6 megapixel sensor. Although it is possible to use PhotoRAW as an editor from within LR, even the imported .tiff files do not have the same brilliance/3D effect.
    Now the question is: how can I help Adobe improve the conversion routine for these files?
    Regards
    Xpanded
    PS: If anybody out there has the magic conversion bullet, then please do share.

    How can I help Adobe make LR3 convert .erf files [Epson digtial rangefinder R-D1s raw format] better?
    After testing LR3 I have re-evaluated my policy for converting two of the three different raw-formats I use: .nef, .x3f and .erf. With the camera calibration beta 2 features for .nef files I cannot see any difference between Capture NX2 output and that of LR3 – well done. And while Sigma’s Photo Pro might still have a slight edge on absolute quality for .x3f files, LR3 has a definite advantage in minimizing (almost eliminating) the green cast problem of high ISO .x3f files. That is one very impressive result.
    But for the .erf files there is no marked improvement in LR3 over LR2 and the difference between PhotoRAW and LR3 is almost unbelievable and not to LR3’s advantage. I have tried all possible combinations of process (2003, 2010), profiles (ACR 2.4, 4.4 and Adobe standard) and color space on direct import of raw-files (.erf, .erf converted to .dng, differently sized .tiffs and jpegs) as well as all different combinations of .tiff and .jpegs (size and bit) imports via PhotoRAW and nothing in LR3 comes even close.
    The .erf files in PhotoRAW have a certain look to them [a combination of a 3D effect and a brilliance that reminds me of a high quality film transparancy] which is what users of R-D1s love and non-users cannot understand is possible to extract from a 6 megapixel sensor. Although it is possible to use PhotoRAW as an editor from within LR, even the imported .tiff files do not have the same brilliance/3D effect.
    Now the question is: how can I help Adobe improve the conversion routine for these files?
    Regards
    Xpanded
    PS: If anybody out there has the magic conversion bullet, then please do share.

  • How to make standard def cable look better on hi-def tv?

    I have a 24" Insignia LED TV model number NS-24E340A13.  When I got it, I did not anticipate that my standard definition cable would not look very good on it.  I have messed with the settings, but it doesn't look any better.  Does anyone have any ideas?

    Non-HD content should look fine on a 24" HDTV. I watch standard def on my 37" all the time, it's defnitely not as sharp as HD, but I don't have any complaints about it. Have you had any other devices hooked up to it? How do they look?
    You have a digital camera? If so, take a picture and upload an image to somewhere like imgur.com, so we can check it out. 

  • How to make a good quality 8 Giga DVD out of a Project in AVI of 14 Gigas?I have a film in a proyect

    How to make a good quality 8 Giga DVD out of a Project in AVI of 14 Gigas?
    I have a film in a proyect made with a miniDV camera in my old Premiere 6.5
      It has 68 minutes and after exporting it with the Microsoft DV AVI compressor in 100 % quality and not compressing the audio, it  ended in an AVI of 14 Gigas.
    I would like to obtain a DVD of the best quality in audio and video possible. How can I do it?  SHOULD I EXPORT IT FROM THE PREMIERE 6.5 WITH ANOTHER COMPRESSOR OR IN LESS THAN 100% QUALITY WITH THE SAME DV AVI COMPRESSOR ? my INTENTION IS TO USE THE NERO VISION AFTERWARDS... I HAVE THE NERO VISION 4...-. FROM 2007- WOULD IT BE OK OR IS THERE A BETTER ONE? - I know there are newer ones...but better?
    I HAVE POSTED THIS A FEW DAYS AGO. THANKS TO THE PEOPLE THAT REPIED. BUT I THINK MY QUESTION IS NOTFULLY ANSWERED YET.
    i NEED THE BEST QUALITY I CAN GET, EVEN WHITH MY PREMIERE 6.5, BECAUSE IT IS A FEATURE FILM THAT TOOK ME SEVERAL YEARS AND THIS LAST REMAKE IS NOW READY AFTER TOO MUCH WORK.
    THANKS A LOT !!!!!!!!!!!!!

    Hello Thanks for your replys and sorry for being so fussy about this.
    I have now seen that one of the options for exporting from Premiere 6.5 is Adobe MPEG encoder. So Do you guys think it would be a good idea to do it with that, Or Would it be better AVI or DV AVI compressor from Premiere before making the DVD?
    I have the Nero Vision 4.9.6.6  But I may be able to look for another one if you think it is better...
    Thanks a lot for your advises...

  • How do I make the video higher quality?

    How do I make dvd's with a higher quality?  I have a Sony AVCHD Camcorder.  I used to use a Macbook Pro and iMovie and iDVD to make DVDs and I could choose to make them a higher quality.  The problem was that it would literally take DAYS to get them done.  I switched to Final Cut, which is quicker, but I can't seem to make the DVDs a higher quality and they are very fuzzy compared to what I used to make.
    My husband assures me that the pros in Hollywood use Final Cut Pro to edit video, so it must be possible to make these a better quality.

    If you still have a copy of iDVD:
    Export from FCP X As a Master File and use the export in iDVD the same way as you did with iMovie.
    Bear in mind all DVD discs will only ever be SD Quality and not HD.
    Better quality requires a jump to Bluray.
    FCP X can burn direct to Bluray if you have the gear.
    Al

  • Look this image, how to make it better

    Can anyone help me to have a look at this picture? It was captured by the camera, and the camera is connected with NI 1427. The middle of the image is so bright. The gap in the middle can not be recognized. Please give some advices on how to make the image better. There must be something with the hardware setting. What should I need to do with that? Thanks for any help.
    Jane
    Attachments:
    NIR1129000019.zip ‏428 KB

    I assume you need to have the overhead lamp on for testing the solar cell?  If you could turn it off during photos, that would improve your images.  Right now I am guessing you are getting a good reflection of the overhead lamp in the center of your image.  Having diffuse lights (like long flourescent bulbs) in multiple places would greatly improve your image quality.  A general rule in lighting for shiny surfaces is to avoid placing a light where you can see its reflection in the image.  This way you won't get any bright spots in the image.
    If you could even tip the solar cell or camera a little bit so the overhead light is not reflected directly into the camera, that would help.
    It is hard to make recommendations without knowing the limitations.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Need advice on how to make my website look better!

    ive made a website for a security company but im just not 100% happy with it, i dont know if it doesnt look professional enough or things need changing design wise. i am open to any ideas on how to make my website look better, i also dont mind if anyone wants to dramtically change it if their idea is better. I would just very much appreciate a review and constructive critisism and ideas for a newly designed version of the site please!
    [advertising slogan removed by host]
    Thanks!

    As a novice, some things I see: The footer has redundant, unecessary images (4 large images-for your services--REDUNDANT) odd? The text part of footer: text seems close, scrunched, have some space between heading and items, DO NOT CENTER TEXT!,
    One of the service links bought to page with SAME LARGE image on homepage-change picture, don't use same large image for 2 different pages.
    DO NOT use CONTACT US as 1 of 5 links on menubar. Do in another creative way, and/or use footer for contact. I think this looks amateurish (my opinion of course).
    If I remember, the homepage and the rest of site, have exact same page structure.--See if you can atleast change the structure of inner pages versus the homepage.
    Didn't look at enough, but..maybe...
    each of your services should be a main menu link on your menubar. I would not put contact us on menubar, and you also had another menubar link with no dropdown( of course ok, but maybe could restructure)--Also your last service (on right of menubar)---why is that one different, and not included with the other services??
    Seems like your menubar (items) structure could be reworked.--I would suggest, briefly looking at, to maybe have each service as a primary menu heading/title..YOU MAY NOT NEED A DROPDOWN MENU? Make sure if dropdown it is necessary.
    Local security should be one of your services.
    Have your footer logo, as is to left, but maybe put your footer links more to the right;;It will 'balance' the footer section
    Your top logo seems too close to your main LARGE image (Which btw, seems oddly large compared to the rest of your site?)--That LARGE top image(the same palce on every same looking page), seems too big for your page--Why doen't it line up with the rest off your page content?

  • Suggestions on how to make this coding better?

    Hey everyone, I was just wondering if anyone had any suggestions on how to make my code better. It's for a project and I want to get a good grade on it. It works fine but I just want to see what everyone thought before I hand it in.
    import java.io.*;
    import java.util.StringTokenizer;
         This class process the input expressions containing rational expressions and proecesses them and then outputs the results.
         @author *****
         @version 1.0
    public class Proj1
         private static String buffer = null; //User input
         private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         private static PrintWriter outfile = null;
         private static int totCount = 0, goodCount = 0, badCount = 0; //Total, Valid, and Invalid counts
         private static boolean fileInput = false; //File to read data
         private static boolean fileOutput = false; //Output for the data
         private static boolean screenOutput = false; //Output so the user can view it
         private static String outFile = null; //File for output
         private static String inFile = null; //File for input
              Main method
         public static void main (String[] args) throws Exception
              Proj1 proj1 = new Proj1();
              proj1(args);
              runs the program
         private static void proj1(String [] args) throws Exception
              if (args.length == 0)
                   printBanner();
                   System.out.println("\n" + "\n" + "Please enter an expression, or type quit");
                   do
                        screenOutput=true;
                        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                        processData();
                   }while(!buffer.equals("quit"));//exits if quit is entered
              if (args[0].charAt(0) != '-')
                   badOption("Invalid Option Specified ");
              for(int i=1; i<args[0].length(); i++)
                   switch(args[0].charAt(i))
                        case 'f': fileInput = true;
                                    break;
                        case 'o': fileOutput = true;
                                    break;
                        case 'b': fileOutput = true;
                                    screenOutput = true;
                                    break;
                        default:  printBanner();
                                    invalidOption("Proj1: Invalid Option Found: " + args[0].charAt(i));
              if(fileInput && args[0].length() == 2)
                   screenOutput = true;
              if(fileInput && !fileOutput)
                   if(args.length == 1)
                        badOption("No Input File Specified.");
                   else
                        File inFile = new File(args[1]);
                        if(!inFile.exists())
                             nonExist("Input File " + args[1] + " not found");
                   br = new BufferedReader(new FileReader(args[1]));
                   printBanner();
                   processData();
                   closeFiles();
              if(fileOutput && fileInput)
                   printBanner();
                   if(args.length > 2)
                        outFile = args[2];
                   else
                        if(args.length > 1)
                             outFile = "proj1.dat";
                             noOut("No output file specified , defaulting to proj1.dat");
                   inFile = args[1];
                   br = new BufferedReader(new FileReader(inFile));
                   processData();
                   closeFiles();
              if(fileOutput && screenOutput)
                   printBanner();
                   if(args.length == 1)
                        outFile = "proj1.dat";
                        noOut("No output file specified, defaulting to proj1.dat");
                        System.out.println("\n" + "\n" + "Please enter an expression, or type quit");
                        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
                        processData();
                        closeFiles();
                   else
                        outFile=args[1];
                        System.out.println("\n" + "\n" + "Please enter an expression, or type quit");
                        br = new BufferedReader(new InputStreamReader(System.in));
                        processData();
                        closeFiles();
         Processes the input data by the user by doing the specified operations and then displays the output
         private static void processData() throws Exception
              if(fileOutput)
                   outfile = new PrintWriter(new FileOutputStream(outFile), true);
              else if(fileOutput && screenOutput)
                   outfile = new PrintWriter(new FileOutputStream(outFile), true);
              buffer = br.readLine();
              while(!buffer.equals(""))
                   StringTokenizer reader = new StringTokenizer(buffer);
                   int count = 0;
                   String number1 = null;
                   String number2 = null;
                   String op = null;
                   boolean valid = true;
                   boolean secondNumber = true;
                   while (reader.hasMoreTokens())
                        switch(count)
                             case 1: number1 = reader.nextToken();
                                       break;
                             case 2: op = reader.nextToken();
                                       break;
                             case 3: number2 = reader.nextToken();
                                       break;
                        count++;
                   if(number1 == null || number1.equals("quit"))
                        printSummary(goodCount, badCount, totCount);
                        closeFiles();
                   if(number2 == null)
                        secondNumber = false;
                   char character;
                   int position = 0;
                   String s = "0123456789/-";
                   for(int i = 0; i < number1.length(); i++)
                        character = number1.charAt(i);
                        position = s.indexOf(character);
                        if(position == -1)
                             valid = false;
                   if(secondNumber)
                        for(int i = 0; i < number2.length(); i++)
                             character = number2.charAt(i);
                             position = s.indexOf(character);
                             if(position == -1)
                                  valid=false;
                   int denomin2 = 0;
                   int numer2 = 0;
                   String n1 = null;
                   String d1 = null;
                   int izerCount = 0;
                   StringTokenizer st2 = new StringTokenizer(number1,"/");
                   while(st2.hasMoreTokens())
                        switch(izerCount)
                             case 1: n1 = st2.nextToken();
                                       d1 = "1";
                                       break;
                             case 2: d1 = st2.nextToken();
                        izerCount++;
                   int numer1;
                   int denomin1;
                   int tokenCount = 0;
                   if(valid)
                        numer1 = Integer.parseInt(n1);
                        denomin1 = Integer.parseInt(d1);
                        String n2 = null;
                        String d2 = null;
                        if(secondNumber)
                             StringTokenizer st3 = new StringTokenizer(number2, "/");
                             while(st3.hasMoreTokens())
                                  switch(tokenCount)
                                       case 1: n2 = st3.nextToken();
                                                 d2 = "1";
                                                 break;
                                       case 2: d2 = st3.nextToken();
                                  tokenCount++;
                             numer2 = Integer.parseInt(n2);
                             denomin2 = Integer.parseInt(d2);
                             RationalNumber z1 = new RationalNumber(numer2, denomin2);
                        RationalNumber z = new RationalNumber(numer1,denomin1);
                        RationalNumber z1 = new RationalNumber(numer2,denomin2);
                        boolean lt = true; //whether the first number is less than the second
                        boolean gt = true; //whether the first number is greater than the second
                        boolean eq = true; //whether the first number is equal to the second
                        boolean le = true; //whether the first number is less or equal to the second
                        boolean ge = true; //whether the first number is greater than or equal to the second
                        boolean zeroDenom = true; //whether the denominator is zero
                        if(denomin1 == 0 || denomin2 == 0)
                             zeroDenom = true;
                             badCount++;
                        else
                             zeroDenom = false;
                        if(!zeroDenom && secondNumber)
                             if(op.equals("+"))
                                  RationalNumber z2 = z.add(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " = " + z2.getNumerator()+ "/" +z2.getDenominator());
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " = " + z2.getNumerator()+ "/" +z2.getDenominator());
                                  goodCount++;
                             else if(op.equals("-"))
                                  RationalNumber z3 = z.sub(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " = " + z3.getNumerator()+ "/" +z3.getDenominator());
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " = " + z3.getNumerator()+ "/" +z3.getDenominator());
                                  goodCount++;
                             else if(op.equals("*"))
                                  RationalNumber z4 = z.mlt(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " = " + z4.getNumerator()+ "/" +z4.getDenominator());
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " = " + z4.getNumerator()+ "/" +z4.getDenominator());
                                  goodCount++;
                             else if(op.equals("/"))
                                  RationalNumber z5 = z.div(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " = " + z5.getNumerator()+ "/" +z5.getDenominator());
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " = " + z5.getNumerator()+ "/" +z5.getDenominator());
                                  goodCount++;
                             else if(op.equals("<"))
                                  lt=z.lt(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " is " + lt);
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " is " + lt);
                                  goodCount++;
                             else if(op.equals(">"))
                                  gt=z.gt(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " is " + gt);
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " is " + gt);
                                  goodCount++;
                             else if(op.equals("="))
                                  eq=z.eq(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " is " +  eq);
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " is " +  eq);
                                  goodCount++;
                             else if(op.equals("<="))
                                  le=z.le(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " is " + le);
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " is " + le);
                                  goodCount++;
                             else if(op.equals(">="))
                                  ge=z.ge(z1);
                                  if(screenOutput)
                                       System.out.println(buffer + " is " + ge);
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println(buffer + " is " + ge);
                                  goodCount++;
                             else
                                  if(op==null)
                                       if(screenOutput)
                                            System.out.println("Invalid expression: " + buffer);
                                       if(fileOutput || fileOutput && screenOutput)
                                            outfile.println("Invalid Expression: " + buffer);
                                       badCount++;
                             else
                                  if(screenOutput)
                                       System.out.println("Invalid expression: " + buffer );
                                  if(fileOutput || fileOutput && screenOutput)
                                       outfile.println("Invalid expression: " + buffer);
                                  badCount++;
                        else
                             if(screenOutput)
                                  System.out.println("Invalid operand: " + buffer);
                             if(fileOutput || fileOutput && screenOutput)
                                  outfile.println("Invalid operand: " + buffer);
                   else
                        if(screenOutput)
                             System.out.println("Invalid operand: " + buffer);
                        if(fileOutput || fileOutput && screenOutput)
                             outfile.println("Invalid operand: " + buffer);
                        badCount++;
                   buffer = br.readLine();
         Prints the banner for the program
         private static void printBanner()
              System.out.println("+++++++++++++++++++++++++++++++++++++++++"+"\n"+"+Welcome to the expression connection   +"+"\n"+"+++++++++++++++++++++++++++++++++++++++++");
         Prints the total number of expressions, total number of valid expressions, and total number of bad expressions.
         private static void printSummary(int goodCount, int badCount, int totCount)
              totCount = goodCount + badCount;
              System.out.println("\n");
              System.out.println("+++++++++++++++++++++++++++++++++++++++++");
              System.out.println("+ Total Expressions:        "+totCount);
              System.out.println("+ Total Valid Expressions   "+goodCount);
              System.out.println("+ Total Bad Expressions     "+badCount);
              System.out.println("+++++++++++++++++++++++++++++++++++++++++");
         Prints the error message if there is no output file specified
         private static void noOut(String errorString)
              System.out.println("\n");
              System.out.println("Proj1: " + errorString);
         Prints the error message if there is an invalid option input by the user
         private static void invalidOption(String errorString)
              System.out.println("\n");
              System.out.println("Proj1: " + errorString);
              System.out.println("Proj1: Usage is: java proj1 [-fob] [input] [output]");
              System.exit(0);
         Prints the error message if there is a bad option input by the user
         private static void badOption(String errorString)
              System.out.println("\n");
              System.out.println("Proj1: " + errorString);
              System.out.println("Proj1: Usage is: java proj1 [-fob] [input] [output]");
              System.exit(0);
         Prints the error message if the input file does not exist
         private static void nonExist(String errorString)
              System.out.println("\n");
              System.out.println("Proj1: " +errorString);
              System.out.println("Proj1: Usage is: java proj1 [-fob] [input] [output]");
              System.exit(0);
         Closes the files used by the user
         private static void closeFiles( )
              if(fileOutput && !screenOutput)
                   outfile.close();
              System.exit(0);
    }

    Well working is good...
    The code itself is less than spectacular I'm afraid. There is very little
    OOness to this. For your future reference when you complete a program
    and it consists of nothing but static methods you have done something
    incorrectly.
    As far as the code you do have goes some refactoring would be nice.
    The two main methods you have (proj1 but especially processData) are
    too long and unwieldy. processData seems to be a program in an of
    itself. It's complicated and hard to follow.
    My recommendation to you would be to read this http://java.sun.com/docs/books/tutorial/java/index.html
    Especially focus on the sections dealing with explanation of Object
    programming. These terms and concepts can certainly be confusing to
    new programmers so you may also want to consider finding yourself a
    tutor to help you get a better grasp of these concepts.
    In short if it works that's good. And it's also good to see that you put the
    effort and time in that you have. However if I was grading your project
    I'd give it a C- at best because this is a Java program in syntax only.

  • How do I make iPad images high quality in Photoshop?

    I'm a graphic designer and I tried setting the resolution higher with my 1024 x 768 image but it still looks crappy when viewd on my iPad 2. How do I make the image higher quality when I save it? I use Adobe Photoshop cs4.
    Thanks

    Photos that are synced via iTunes get 'optimised' during the transfer, though I don't know what the optimisation actually does (and it's not possible, as far as I know, to bypass the optimisation when syncing photos). If you want your versions of the photos on the iPad then you could try the camera connection kit, emailing them to yourself (and then saving to Photos), or one of the wifi photos transfer apps - though the photos will only go into the camera roll/saved photos album (at least until iOS 5 which should allow us to move photos between albums)

  • "Maximum Render Quality" Better to turn it OFF when using CUDA MPE?

    http://crookedpathfilms.com/blog/201...port-settings/
    "IMPORTANT NOTE ABOUT RENDERING TIME:  Make sure you do not select “Use  Maximum Render Quality” if you are utilizing the accelerated GPU  graphics (Mercury Playback Engine).  This will not improve your video  and will only slow down the rendering speed by as much as 4 times!"
    http://blogs.adobe.com/premiereprotr...e-pro-cs5.html
    "For export, scaling with CUDA is always at maximum quality, regardless  of quality settings. (This only applies to scaling done on the GPU.)  Maximum Render Quality can still make a difference with CUDA-accelerated  exports for any parts of the render that are processed on the CPU...
    When rendering is done on the CPU with Maximum Render Quality enabled,  processing is done in a linear color space (i.e., gamma = 1.0) at 32  bits per channel (bpc), which results in more realistic results, finer  gradations in color, and better results for midtones. CUDA-accelerated  processing is always performed in a 32-bpc linear color space. To have  results match between CPU rendering and GPU rendering, enable Maximum  Render Quality."
    Here is what I got out of after reading those two sites:
    I should turn it off for it's always ON (when CUDA MPE is used)  regardless I check or uncheck it.Turning it ON only offloads the  calculation to CPU (instead of GPU) hence slowing down the previewing  and encoding performance.
    So I guess I should have Maximum Render Quality setting turned OFF in both of squence settings and export settings.
    However, David Knarr of Studio 1 Productions suggest otherwise:
    http://www.studio1productions.com/Articles/PremiereCS5.htm
    "When you startup Adobe Premiere CS5 and you don't have a certified video card  (or one that is unlocked) the Mercury Playback Engine is in software rendering mode  and by default the Maximum Render Quality mode (or MRQ) is to OFF.
    (Maximum Render Quality mode will maximize the quality of motion in rendered clips and  sequences.  So when you select this option, the video will often  render moving objects more sharply.  Maximum Render Quality also maintains sharp  detail when scaling from large formats to smaller formats, or from  high-definition to standard-definition formats.  For the highest quality exports you should always use the Maximum Render Quality  mode.)
    When you unlock Adobe Premiere CS5 so the Mercury Playback Engine can use almost  any newer NVidia card (or if you are using a "certified" NVidia graphics card),  the Mercury Playback Engine will be in the hardware  rendering mode and the Maximum Render Quality mode  will be turned ON.
    Since the software mode is not set to maximum render quality,  it can sometime render faster than the hardware render, but a a loss in  qualitly. If you set the software to  maximum render quality you will see that it is very, very slow compared to the  hardware render.
    Here is how to set the Maximum Render Quality.
    1)  Open up Premiere CS5
    2)  Click on Sequence at the top of the screen
    3)  Then select Sequence Settings
    4)  At the bottom of the window select Maximum Render Quality and click Okay
    It is always best to be using the Maximum Render Quality mode,"
    Now, I'm lost.

    Okay, I am loosing it.....    You are correct.
    I am not sure what I was remembering, I could have sworn that when I loaded Premiere CS5 for the first time before I unlocked the video card, the Maximum Render Quality mode was NOT checked.  Then when I unlocked the video card,  the Maximum Render Quality mode was check to ON and I didn't set it to be On.
    I just when back and uninstalled Premiere and re-installed it, to see what was going on and I was totally wrong.
    Sorry for the mistake and I will be updating the article on my website in the next 15 min.
    Also, I have written a small program to do the unlock automatically.  The program is free and it works with the cards listed under the Automatic Mode.
    If your video card isn't listen, just let me know what your card is and what you typed into the cuda cards file and I will add it to the program.
    David Knarr
    Studio 1 Productions

  • How to make best videos/audios for Creative Zen/Zen Vision W/Zen Vision M/Z

    4Easysoft Creative Zen Video Converter is an all-in-one Video Converter for Creative Zen software with high output quality and powerful video editing functions, which can help all the zen users to make the best video/audio effect.
    First of all, let’s make clear what kinds of videos/audios can get the best effect in the zen players.
    Video:
    MPEG, WMV, and AVI (MPEG-4 SP, DivX, Xvid), while MPEG-1, and MPEG-2 are supported, but must be transcoded with the included software.
    Audio:
    MP3, AAC, WMA, WAV, and Audible 2, 3, and 4 formats.
    Settings:
    Video resolution: 320×240; Video Bitrate: 500 kbps; Audio Bitrate: between 96 to 128 kbps.
    Then, let me show you how to make a full use of this powerful converter.
    Preparation:Download and install 4Easysoft Creative Zen Video Converter
    http://www.4easysoft.com/guide/creative-zen-video-converter/main.jpg
    Step 1: Run this software and add video/audio files.
    Step 2: Select output video format from the profile drop-down list.
    Click the “Profile” button to select the output video format from the drop-down list button.
    Step 3: Customize output settings.
    Click “Settings” button in the output settings area, you are allowed to customize the output parameters, specify output folder and select output format.
    Step 4: Start conversion
    Click “Start” button on right bottom of the main interface, you can begin the conversion. All the tasks of conversion will be finished at fast speed and high output quality.
    http://www.4easysoft.com/guide/creative-zen-video-converter/steps.jpg
    Tips on editing videos:
    1: Capture your favorite picture.
    Just click the “Snapshot” button to save your favorite image.
    2: Merge videos into one file.
    Just check the “merge into one file” option if you want to merge the selected contents into one file As default the merged file is named after the first selected file (either a title or a chapter)
    3: Select preference
    Click the “Preference” button and a dialog pops up, you can select the output destination, the Snapshot foler, the format of the snapshot image. You can also choose to shut down your computer or do nothing after your conversion. You can also select the CPU usage.
    4: Trim video
    You can get any clip of your video and put it on your zen.
    5: Crop video
    You can crop your video by selecting your video mode, setting crop values, or drag the frame.
    http://www.4easysoft.com/guide/creative-zen-video-converter/tips.jpg
    Ok, just enjoy movies and music with your Creative Zen player now!
    More useful tools:
    MP4 Converter is a powerful MP4 Video Converter which is designed to convert almost any video formats to MPEG-4 standard formats; WMV Converter provides perfect solution to convert common video formats to WMV with the best quality of picture and sound; Apple TV Video Converter is the excellent Apple TV converter software to convert all video files such as AVI, MPEG, WMV, MP4, MOV, RM, ASF, 3GP, VOB, etc, to Apple TV movies.
    Edited by: user11254370 on 2009-6-9 下午11:58

    Just wanted to mention - I bought the IR Remote thinking to make the player useful without navigation keys. Now I feel like I wasted more money instead of shifting to some other player by some other company with better customer service.

  • How to export in exact same quality file when uploding for youtube?

    Hello
    Im writing here cause im really tired of exporting dozens of files with bad quality even though im using best exporting settings.
    I tried to watch tutorial clips where people show how to make best quality but still i cant get it right.....i really dont understand where im doing wrong!!
    I would appreciate if there is some1 out there who could help me export in corrects settings.....i know its not easy to help some1 with settings by writing here as u have to know which settings i shot with which settings im using in my timeline and what im using for export....and so on.
    but i give it a try...
    So its like this ive got a camera named
    Sony HDR CX730E
    and i made my shot with setting (pic1)
    its written in swedish anyways its avchd 1920x1080 50p
    so i created a project setting as (pic 2)
    and sequence settings as (pic3)
    and when i export i have tried to export in dozens of files to see which one seems to be best like H.264 ,HD 1080p 29.97 or youtube HD 1080p 29.97 and even i tried Mxf op1a avc intra class100 1080p 25p which gives a superb HD quality when i play it in computer but the files is almost 3,5gb large but i think the larger the file is the better quality i get!?
    Anyhow when i upload the mxf file or any other file which i have exported for youtube it gives a very poor quality once u put Full HD 1080 in full screen ....its almost like u play it without HD......
    I want to achieve something like this http://www.youtube.com/watch?v=avCWzkNiXok
    and my video quality is like youtube video i just showed but unfortunately only in my computer not in youtube.......
    So if there is some1 out there who cud help me ill be so greatful of u!
    Thank you
    (im using adobe premiere pro cc)

    OK.
    First of all, I would not try to export 50fps to 29.97 fps.  I would use 25fps if I used anything other than 50fps.
    Second, there is no need to change your settings at all. YouTube says to upload at the same frame rate you shot it at.
    https://support.google.com/youtube/answer/1722171?hl=en&ref_topic=2888648
    You will also notice that 8Mb/s is the "standard" quality and you can go up to 50Mb/s for 1080p. So try exporting at around the same bitrate as your original recording. If it was 25Mb/s then try that. If 50Mb/s go ahead and try that if you are still not happy at 25Mb/s.
    Although, I generally find that I am content at about 15Mb/s for video without much action, 25Mb/s for most video and for sports I use the max of 50Mb/s.
    Having said that, I don't worry about file size anymore. I have disk space and a fast Internet connection. If either of those are a problem for you, then you may have to adjust your expectations.

  • How can I improve the sound quality of my new iPod?

    Hey there,
    I just received my new iPod with my new MacBook Pro computer.
    I have read every bit of documentation i received plus I have scoured resources here on the forum, but I am baffled.
    I just synced my iPod for the first time to my Macbook, iTunes,
    With the supplied earbuds (from the iPod), the sound is not very good at all. In fact, it the sound of each song seems to break up quite a bit, and the clarity is not very good.
    As an experiment, I plugged the earbuds directly into my MacBook using the same songs, same quality, etc, and the MacBook sounds decidedly better.
    What can I do to improve the tonal quality that is so lacking in my iPod compared to the same recordings on my computer?
    Any tips? Tricks?
    Thanks for your input.
    Joel
    www.readyacoustics.com

    Ok Joel, I think I have the answer for you.
    First, the iPod sound. The 5th Gen iPod is a good sounding unit. It has been designed to have a flat, neutral - uncoloured - sound, which is a good thing.
    There should not be that much of a difference in sound quality between the iPod and the MacBok Pro. Are you sure that all settings are equal on both units? For instance, make sure that the eq is flat on both units, and same goes for the output level. For the same material being played, the louder one will be perceived as sounding better.
    There are ways to improve dramatically the sound you hear from your iPod: (a) better headphones (b) a mini, portable headphone amp.
    (a) better headphones: For a good roundup, check out these two sites:
    http://store.earphonesolutions.com/shureearphones.html
    http://www6.head-fi.org/forums/forumdisplay.php?s=&forumid=2
    I would say that the new Shure E500 (around US$450) would be on top of my list, price not being an issue. It seems like they're good no matter what you're listening to. All others seem to sound good on, say, classical/acoustic, but are way too flat - read boring - for modern music, such as techno or house, or R&B. The brand "Etymoyics" fall into this category, for example. But then again, some people would disagree, so read as much as you can on one of the forums I mentioned above, Headfi - really good.
    (b) mini headphone amp: These are very small and portable, and people who have bought them swear by them. Check out Headfi again, this time on their amp forum:
    http://www4.head-fi.org/forums/forumdisplay.php?s=&forumid=3
    Think about spending about around $500 for a great little portable amp. They're made by enthusists, small-scale companies. Real jewels, some of them, and I mean jewel in terms of quality, not just looks.
    Anyway, this should get you started...Good luck.
    A.

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • In firefox 4 RC, some addons installed suddenly disappear, but checking the profile, some of the missing addons related files are still here, how to make the addons back?

    I use firefox 4 form beta 9 to RC (zh) now and there are also firefox 3.6 installed in computer. One day when I open Fx 4 RC, some (actually a lot but not all) of the adoons just disappear. When I check on about:addons page, some addons installed do not appear in the list.
    The addons '''REMAINED''' including:
    * addons I already used in Fx 3.6 (like webmail notifie , xmarks)
    * ''addons only can use in Fx 4'' (like Open Web Apps for Firefox).
    The addons '''DISAPPEARED''' including:
    * addons I already used in Fx 3.6 (like yoono)
    * '' addons installed when using Fx 4'' (like updatescanner, Thumbnail Zoom).
    But when I check the profile(by Help > Troubleshooting Information>Open Containing Folder) , some (not sure is it all) of the missing addons related files are still here [lucky], so any one know how to make the missing addons back?
    Some more details:
    * This happened when i use RC for already a few days and keep on even i restart Fx and windows.
    * The bookmarks, history, search engine and even themes and icon setting are still here. [ I only sync bookmarks but not history for both xmarks and firefox sync.]
    * This addons are really '''disappeared''' but not disable only!
    * This number of addons missed, as i remember, at least 30, should be more than that number bacause some of them are installed but in disable mode.
    * I try to install back one of the addons - Stylish, the installed code are still here.
    * It is nearly an impossible mission to install every missing addons again, as it really kill my time.

    Delete the files extensions.* (extensions.rdf, extensions.cache, extensions.ini, extensions.sqlite) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry. New files will be created when required.
    See "Corrupt extension files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar to do a compatibility check.

Maybe you are looking for