PKGBUILD problem with zip file
Hi all,
I'm trying to build Envy Code R font package. Here is the file:
pkgname=ttf-envy-code-r
pkgver=preview7
_pkgver=PR7
pkgrel=1
pkgdesc="Free scalable coding font"
arch=('i686' 'x86_64')
url="http://damieng.com/blog/tag/envy-code-r"
license=('freeware')
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
install=envycoder.install
source=("http://download.damieng.com/fonts/original/EnvyCodeR-$_pkgver.zip")
md5sums=('0cce55205f1e8a109021b46c24741257')
build() {
cd $srcdir/Envy\ Code\ R\ $_pkgver
install -D -m644 Read\ Me.txt $pkgdir/usr/share/licenses/$pkgname/readme.txt
mkdir -p ${startdir}/pkg/usr/share/fonts/TTF
for i in *.ttf
do
mv "$i" $(echo $i | sed -e 's/ //g')
done
install -m644 *.ttf ${startdir}/pkg/usr/share/fonts/TTF/ #Skipping what's under VS
However, 'makepkg' gave this error: -> bsdtar -x -f EnvyCodeR-PR7.zip
Envy Code R PR7/Envy Code R Bold.ttf: Write request too large
Envy Code R PR7/Envy Code R Command Prompt.reg: Write request too large
Envy Code R PR7/Envy Code R Italic.ttf: Write request too large
Envy Code R PR7/Envy Code R.ttf: Write request too large
Envy Code R PR7/Read Me.txt: Write request too large
Envy Code R PR7/Visual Studio italics-as-bold/Envy Code R VS Italic-as-bold.ttf: Write request too large
Envy Code R PR7/Visual Studio italics-as-bold/Envy Code R VS.ttf: Write request too large
bsdtar: Error exit delayed from previous errors.
I tried bsdtar -x -f with normal zip file and zip file with spaced file name and found no problem. Can anybody explain? Thanks,
Certain zip files can't be handled by bsdtar; it is explained in more detail in some of the technical writeups of libarchive which processes all files as streams rather than random-access as the 'unzip' program does.
For zip files that are made in a slightly unorthodox fashion, one can do the following:
1. Add the zip file to the noextract=() PKGBUILD array
2. Add 'unzip' as a makedepend
3. Add as the first lines of your build function:
cd $srcdir
unzip <sourcefile>.zip
4. Continue as normal.
Similar Messages
-
Problem with ZIP file download
I try to download a ZIP file from some URL. Everything goes fine, but I never get the entire content of the file (1.79 MB size).
Here a code snipet:
byte[] data = new byte[conn.getContentLength()];
Object obj = conn.getContent();
java.io.BufferedInputStream bis = (java.io.BufferedInputStream) obj;
bis.read(data);
bis.close();
File f = new File(sPath.toLowerCase());
FileOutputStream fos = new FileOutputStream(f);
fos.write(data);
fos.flush();
fos.close();
Any ideas? Thanks in advance.
FrankI think the real problem is that you don't check the return value from read (it's probably less than data.length indicating an incomplete read). Isn't there a readFully somewhere?
-
Waas caching problem with zip files
hi,
When we send same zipped file to branches, waas does not cache that file, without zipping waas caches the file. Is there any restrictions for zip file?Hi Muhammed,
When you say that WAAS is not caching, I guess you mean that the optimization achieved is much lower than without zipping the file. Am I correct?
If that is the case, then, I'm afraid it's the expected behavior. The cause for this is DRE
In general terms, the way DRE works is by caching small chunks of a file. Later on, when these chunks are seen again in the file (either in the same connection or subsequent ones), they will not be transferred through the WAN link and instead, a chunk identifier (very small) will be sent. The problem is that all compression algorithms work in a similar way, removing repeating parts of the file to make it smaller.
The result is that, any file that is encrypted/compressed has almost no repeating patterns in it, and therefore, even though DRE is applied, the reduction ratios are minimal, sometimes even getting to the point of making transfer even slower than without it.
As a general good practice, if you are using WAAS to optimized your data transfers, make sure that the files you are transferring are neither compressed nor encrypted. This way you will get the maximum optimization ratios out of WAAS.
I hope this answers your question
Daniel -
Problem with zipping file with chinese chars
I need to zip a html page which contains some chinese characters, I am able to zip it and create a zip file
but the problem is when i open the zip file and view the html file it displays junk characters instead
of chinese characters
Here is what i am doing
ByteArrayOutputStream bStream = new ByteArrayOutputStream();
ZipOutputStream zStream = new ZipOutputStream(bStream);
ZipEntry zipEntry = new ZipEntry(htmlFilename);
zStream.putNextEntry(zipEntry);
ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
PrintWriter writer = new PrintWriter(
new OutputStreamWriter(dataStream,"UTF-8"));
writer.write(htmlString); //htmlString is the string which contents the html contents which has chinese char
writer.close();
zStream.write(dataStream..toByteArray());And when you view the unzipped file, are you using something that realizes that you encoded your data using UTF-8? My guess is that you are not.
PC² -
Strange problems with Zip Files in Captivate/SumTotal
Ok, this is a weird one. If I publish a 1.2 SCORM course and select the zip folder option, our (horrible) SumTotal 7.6 system has no problems uploading the course. If I publish to a folder or to my desktop and place all the files in the folder and zip the file, it doesn't track as SCORM at all.
I get the same results on the ADL Test Scorm tracker. When the zip folder is uploaded, it reads as SCORM compliant. When I publish to an upzipped folder and then zip it, I get a ton of XML file not well formed and other xml errors.
The issue is that I need to make changes to the imsmanifest file to remove the SumTotal Navigation Player and resize the screen properly for the course.
The zip program we are using is "ZipGenius".
1.) Has anyone else run into this issue?
2.) Any ideas on how to fix this so that I can make changes to the imsmanifest file and still upload the course as 1.2 SCORM compliant?
Thanks,
DanKevin,
At first, I would have thought the LMS doesn't necessarily return the appropriate information for Captivate to send a score (there are several basic calls that are supposed to be sent by an LMS in SCORM to facilitate this). So, I created a custom HTM file for the Captivate 4 template... But in re-reading the thread - you are using SumTotal and I believe SumTotal does make these calls...
For the purposes of anyone else that is using an LMS and not seeing a score in their LMS (and they are using this custom template) - here is a Captivate 4 template file that forces Captivate to send a score to a SCORM LMS (though not necessarily SCORM-compliant LMS - if these calls are ignored): http://www.learningconsulting.com/Content/Macromedia/Captivate/SumTotal_Captivate4_SCORM_C ustom.zip
Kevin - I do not necessarily believe this custom template will work for you. I can send you an entire debug file I've built for helping to track down AICC/SCORM issues - but let's hold off on that, for now. Can you edit the resulting HTM file of one of your published Captivate file built using the SCORM template I've provided earlier; modify the last line in the method sendTrackingDataToLMS; uncomment out the alert statement (remove the "//"). I'd like to know what is displayed when you close the content window from SumTotal.
Regards,
Andrew -
Problem in ZIP file encryption
Hi Folks,
I am facing a problem while encrypting and decrypting a ZIP file. The result file is corrupted.
If i encrypt .txt and .doc files, i am able to get them in decryption. But problem with ZIP files. What could be the reasone?
I am using AES algorithem.
Key Generator code is:
================
KeyGenerator kgen = KeyGenerator.getInstance("AES");
kgen.init(128); //128 bitskey = kgen.generateKey();
Encryption:
========
Cipher ecipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
//paramSpec is a Initialization Vector
ecipher.init(Cipher.ENCRYPT_MODE, skey, paramSpec);
FileInputStream in = new FileInputStream("c:\\encryption\\Source.zip");
FileOutputStream out = new FileOutputStream("c:\\cipher\\cipher.enc");
OutputStream cout = new CipherOutputStream(out, ecipher);
int numRead = 0;
while ((numRead = in.read(buf)) >= 0) {
cout.write(buf, 0, numRead);
Decryption:
========
Cipher dcipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
dcipher.init(Cipher.DECRYPT_MODE, skey, paramSpec);
FileInputStream fis = new FileInputStream("c:\\cipher\\cipher.enc");
InputStream in = new CipherInputStream(fis, dcipher);
FileOutputStream fos = new FileOutputStream("c:\\encryption\\Result.zip");
int numRead = 0;
while ((numRead = in.read(buf)) >= 0) {
fos.write(buf, 0, numRead);
}bala_1404 wrote:
i closed them in the program. i just pasted important lines of my program.You have a program that does not work and you don't know why yet you feel confident enough in your diagnosis to show just the lines where you think the problem lies. I'm betting that you are closing the wrong streams but of course I am guessing since I can't see the code that matters.
Good luck. -
I receive many e-mails with zipped files. I can no longer open or unzip my files. A window welcoming me to Application Loader drops down. It prompts for an iTunes Connect login, but will no accept my iTunes login. I have no way to open or unzip my files. Help!!!!
Application Loader, unless there's another one I'm not familiar with, is part of the iOS SDK. That have usurped the .zip, or you may have removed that application but your Mac is still holding onto the mapping of Zip files to that application. Select a .zip file in Finder, Get Info, and go to the Open with section. Select Archive Utility and click Change All. That should fix the problem.
Regards. -
Problem with .sitx files (Safari but not Firefox???)
Hi All,
I have a website online (with help from iWeb and BBEdit) but am having a problem I cant figure out (this IS my first website!)
I am hoping that someone much more knowledgeable than me can help me with it.
I basically have a download section. Icons and desktops.
Now, when I (or anyone else) tries to download- everything seems to be fine in FireFox (even IE!) but not in Safari.
My desktops are compressed as .zip files. No problems there, everyone can download and open (including Safari users!)
My icons are compressed as .sitx files. This is where the problems come in. Firefox and IE download them no problem ('save to disk?' etc) However when one attempts to download the icons (.sitx files) with Safari it simply displays pages of gibberish (starting with the word 'Stuffit') which I am presuming is Safari trying to 'display' the contents of the actual stuffit file.
Why is this? Why wont safari simply download the .sitx files as it does .zip files?
Does Safari have some sort of inherent problem with .sitx files? Is it some sort of configuration within Safari preferences? or (and probably most likely!) is it something I have done wrong?
Oh, my website (page in question!) can be found here:
http://aoimedia.co.uk/news/news.html
Thanks in advance for all your valuable help
Kind regards
John
12 G4 Powerbook/Superdrive. (she's named Skates!) Mac OS X (10.4.4)Hi,
It sounds like the server the website/file is hosted on is not identifying the type correctly. As you've seen, different browsers will handle this situation differently.
Have a read of this article:
http://www.macosxhints.com/article.php?story=20040211102018600
Hope that helps. -
Problems with .ARW files and auto toning
problems with .ARW files and auto toning
let me try to explain this because this has happened in past and never found a way to resolve but i lived with it
now that I have a Sony A7R the problem is more serious
Firstly i take pride it making the picture happen all in camera, i use DRO lvl 5 to get enough light, like when i'm shooting at dusk. DRO its like doing HDR but in a single file, it lightens the darks. in my camera i'm happy with results
but when I upload them to lightroom, they come out near black.
allow me to explain
lets say I import 100 images
i double check my preferences and everything is UNCHECKED when it comes to importing options, there is no auto toning, nothing.
as the images import i see a preview in the thumbnail which looks fine.
i double click on one to enlarge it, hence leave grid view.
for a brief 1 or 2 seconds, i see the full image in all its glory but than lightroom does something funny, it darkens the image
one by one as it inspects each image, if it was a DRO image it makes it too dark.
to make this clear, the image is perfect as it was in the beginning but after a few seconds lightroom for some reason thinks it needs to correct it.
how to prevent lightroom from doing this, i want the image exactly as it is, why must lightroom apply a correction>?
i think it has to do something with interpreting the raw file and lightroom applies its own algorithm.
but here is what i dont get.....before lightroom makes the change i'm able to witness the picture exactly as it was taken and want it unchanged..
now i have to tweak each file or find a profile for it which is added work.
any ideas how to prevent lightroom from ruining my images and just leave them as they were when first detected...
there are 2 phases...one is when it originally imports and they look fine
second is scanning each image and applying some kind of toning which darkens it too much.
thanks for the helpsorry thats the auto reply message from yahoo email.
i've disabled it now
thing is, there is no DRO jpg to download from the camera
its only ARW. so my understanding is when i use DRO setting, the camera makes changes to the ARW than lightroom somehow reads this from the ARW.
but then sadly reverts it to no DRO settings.
because i notice if i take normal picture in raw mode its dark but if i apply dro to it, it comes out brighter, yet when i d/l the image from camera to lightroom, which is an ARW - there are no jpgs. lightroom decides to mess it up
so in reality there is no point in using DRO because when i upload it lightroom removes it.
is there a way to tell lightroom to preserve the jpg preview as it first sees it.
its just lame, picture appears perfect...than lightroom does something, than bam, its ruined,.
what do i need to do to prevent lightroom from ruining the image? if it was good in the first place. -
Problems with compressing files with right hand click. it does not work.
Problems with compressing files with right hand click.
I am using the compress function in the Mac OS (File > Compress XX) from time to time. Today it does not work anymore. OS 10.5.6
I get a message: The content list cannot be created for compressing.
I tried it with files and folders and keep getting this message. Anybody any idea as to how to fix thisThanks I love my macbook!!!!
I also got further problems such as copy-paste not working etc.
so I fixed it just this morning by running Applejack 1.5 and am back up running noticing your post.
thanks for helping though! -
Hi,
Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
ImageIcon Upload=new ImageIcon("images/Upload.gif");
Button=new JButton(Upload);
Button.setToolTipText("Upload");
Button.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
int returnVal = fc.showOpenDialog(ActionDemo4.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
String aa=file.getAbsolutePath();
textArea3.append(aa);
textArea2.append("Local URL:");
long l=file.length();
try
byte buff[]=new byte[(int)file.length()];
InputStream fileIn=new FileInputStream(aa);
int i=fileIn.read(buff);
String conffile=new String(buff);
String str1=textArea10.getText();
url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
urlConn = url.openConnection();
urlConn.setDoInput (true);
urlConn.setDoOutput (true);
urlConn.setUseCaches (false);
urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
printout = new DataOutputStream (urlConn.getOutputStream ());
String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
printout.writeBytes(content);
printout.flush ();
printout.close ();
Best Regards
BikashThe errors are here:
byte buff[]=new byte[(int)file.length()];
InputStream fileIn=new FileInputStream(aa);
int i=fileIn.read(buff);
String conffile=new String(buff); (conffile is a String object containing the image)
and here:
String content ="-----------------------------7d11e410e500f2\r\n"+"Con
ent-Disposition: form-data;"+"name=\"upload\";
filename=\""+aa+"\"\r\n"+"Content-Type:
application/octet-strem\r\n\r\n\r\n"+conffile+"--------
--------------------7d11e410e500f2--\r\n";
printout.writeBytes(content);conffie is sent to the server but
it's non possible to treat binary data as String!
Image files must be sent as byte[] NOT as String ...... -
What is the exact problem with this file?
Hi all,
There is an old form , which was not in use from many days.
Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
The login button has the following code:
DECLARE
UNAME VARCHAR2(30);
--USER_ID PARAMLIST;
V_USER APUSERMA.USER_NAME%TYPE;
V_PASSWED APUSERMA.USER_PASSWD%TYPE;
BEGIN
select user_CD INTO :GLOBAL.USER_ID from apuserma
where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
:global.user_id := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
:global.compname := :compname;
compnm(:compname);
--USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
exception
when no_data_found then
MESSAGE('Incorrect Username or Password. Please Re-Enter');
message(' ');
RAISE FORM_TRIGGER_FAILURE;
END;
EXIT_FORM;
When i tried to compile, i got error saying ,
Error 201 at line 10, column 28
identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
I am not getting to know What is the exact problem with this file?
Help me with this please.
Thank You.
Oracle forms builder 6i.
Oracle 9i.Vijetha wrote:
I also want to know what is the use of win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
What does it do??
If i comment the following line , will it be a problem??
:global.user_id := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
Because i commented the above line & compiled, so it is not giving any error now.
So please tell me what win_api_environment.read_registry does??
it's read windows registry value. So, no problem if you comment it.
Thanks -
Problem with Receiver File adapter
Hi
I have a problem with receiver file FTP adapter, while writting file in target folder, connection is failing, after retries, it writting file again. How to avoid this situation, is there any way to write the leftout part in the file.
VSHi
Thank u all, Problem is solved, i changed write mode to Over write existing file. It is working fine.
VS -
Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem
Hi AKE1919,
Welcome to the Support Communities!
The following information should help you with this:
How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
http://support.apple.com/kb/HT1933?viewlocale=en_US
Cheers,
Judy -
Problem with import file type setting
Problem with import file type settings - In preferences>general I select "wav encoder" But then going to tools>Create it still says "create mp3 version".
Can't find a way to overcome this. Thanks for any help.Doublechecking, roy. After making the preferences change, are you leaving the General tab by clicking the OK button down the bottom-right-hand corner of the tab?
Maybe you are looking for
-
Need to backup and remove photo library from my iphone. This library was previously backup on a hard drive that crashed. So these photos are only in the photo library and not in the camera roll. If I do a full backup, it only takes the camera roll
-
Is it possible DLSW with remote ack for LLC2.?
Hello.: In the following env I have an SNI connection: 3745-Tokenring/2612-FrameRelay-2612/Tokenring-OSA. the 2612 is DLSW. I have noticed, sometimes,when there is a HW problem in the right side, the 2612left, maintains the LLC2 session with R/Rs and
-
Cannot rotate photograph in iMovie for iPad
I am trying to insert photographs into an iMove project on the iPad (ios7). I have rotated the photograph every which way in the camera roll, but no matter what it imports to the movie sideways. I cannot figure out how to rotate it!
-
Move songs to a Sansa MP3 Player
Can I move a playlist from itunes to a Sansa MP3 player? I tried to drag the songs over but it didn't work.
-
Flash CS5 Classroom in a Book ebook (Kindle) tutorial files
Before I purchase Flash CS5 Classroom in a Book (Kindle edition) I want to be certain that the tutorial files included with the book's print edition are available online for the ebook edition. The location should have a URL with the form www.peachpi