Showing posts with label technology. Show all posts
Showing posts with label technology. Show all posts

InDesign CS6 script - Export JPG Images with Original Filename into New Folder

Yay!
My first real InDesign script.

//What it does:
1. Export framed images from InDesign into individual JPG images.
2. These images will be named the same file name as the original linked file.
3. JPEG Settings: Progressive, Medium quality, 72 dpi, RGB (You can change these, but not sure about changing RGB - CMYK).
4. Images saved into created folder: "JPG webexport".

//NOTES:
1. The image size will be the same size as the frame of the image.
2. All framed images will be exported.
3. You gotta change the folder; absolute location (two instances).
4. If you know how to change the output folder into same location as the .indd file, PLEASE do tell. I couldn't figure this out.

//If you want to edit it:
1. You may open the file with Notepad (or other).
2. Change stuff.
3. Save it.
4. Make sure extension is .jsx.


DOWNLOAD LINKS (Google Drive):


// Credit where it's due.
These were my main sources. Thank you very much to the helpful guys and gals of StackExchange/StackOverflow :')

Now, I'm pretty sure the script can still be cleaned up, but being that this already took up almost two of my work days, I ain't gonna fix what's not broken :')

//

//Script in text below (Select to COPY from BELOW here):

var myDoc = app.activeDocument,
apis = myDoc.allPageItems, rect, fileName;


while ( rect = apis.pop() )
{
    if ( !(rect instanceof Rectangle) || !rect.graphics[0].isValid ){ continue; }

    fileName = File ( rect.graphics[0].itemLink.filePath ).name;
    fileName = fileName.replace( /\.[a-z]{2,4}$/i, '.jpg' );

    app.jpegExportPreferences.exportResolution = 72;
    app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.MEDIUM;


    //make new folder
    var f = new Folder("c:/users/Shadouness/desktop/JPG webexport/"); 
    f.create();

    //give it a unique name
    var myFile = new File('c:/users/Shadouness/desktop/JPG webexport/' + fileName);

    rect.exportFile(ExportFormat.JPG, myFile);
}

// (Select to COPY until ABOVE here)

Firefox Addon MAF + Adblock incompatibility

Finally found the culprit!

This is Firefox's Adblock Plus


When using Mozilla Archive Format (1.0.0), disable Adblock Plus (1.3.3), otherwise you'd always end up saving garbled htm/mht code.

Mozilla Archive Format (MAF) enabled in my Firefox 4.0 Beta 12 web browser
Links:

Adblock Plus in the Firefox Add-ons page.
Adblock Plus support site.
Mozilla Archive Format in the Firefox Add-ons page.
MAF support site.



[compatible, compatibility, add-on, addon, Firefox, web browser, incompatible, incompatibility]

fbbutton is a Flop

I saw a Firefox addon that claims it will (in my words) enhance and ease my Facebook experience. But only after a Firefox restart, I immediately noticed a big decrease in my browser's responsiveness. Anything I tried to do on Firefox happens a minute or more afterwards. It's. A. Flop. Sadly.

I wouldn't be surprised if it's a vehicle for malicious code.

Here are screenshots of it, and I provided a link* for the curious, but I recommend that you NOT use it:
http://fbbutton.com/
(*and if you check out the page of that link, you'll see that I'm only one of the four people who "Like"d it on the Facebook widget on that page. Unfortunately, there still isn't an "Unlike" or "Dislike" button.)
ABOVE: fbbutton is listed among the toolbar menus of Firefox

ABOVE: fbbutton adds a toolbar to your Firefox browser 

ABOVE: fbbutton options


ABOVE: It's easy to hit that "Disable" button. "Uninstall" isn't bad either. I only disabled it, kept it there for "archiving"

Facebook Issue Fix: Clicking On Link Takes You To a White Page

First off, darn it. I can't make the title short enough to be that descriptive. Ah, well, it's done.

Anyway... THE ISSUE:

I couldn't post a comment or "Like" anything on Facebook because every time I click on those buttons/links to do so, it takes me to this address: http://www.facebook.com/ajax/ufi/modify.php that contains just a white page.

Fortunately, it seems to only happen on Firefox. Unfortunately, a lot of what I do on Facebook I like doing with Firefox. (FB doesn't work well with Opera, while FB-ing in Chrome is fast, but I miss some functionalities I use with Firefox, while with my Safari browsing in general feels "cumbersome").

The solution:

Simply change http: to https:

(Go on, try the links. Click and see some difference :'p)

Then, say "Yay!" ='D


I've read that for some people, it happens with the other popular web browsers (Internet Explorer, Opera, Chrome, and Safari). Hopefully, this is the same fix.

Easy peasy ='p

Metro TV "Big Radiation Wave" hoax

It's debunking tiiime! ='D
I'm back! and I consider it a good returning, since I'm a skeptic, and "claim investigations" are among my favorite things :')

I came home from setting up a neighbor's computer, and my mother told me she forwarded me a message (I left my cellphone at home). This was the message I received (unedited):

Pass... Pls switch OFF all ur handphone 2NITE.According to Metro TV,an international news,there will be a BIG RADIATION WAVE circulating thru the handphone towers at 11PM 2nite which is very DANGEROUS to human. Pls inform ur friends NOT 2 keep their phone with them.
Pls FORWARD.(confirmed s radio knina*)

*confirmed sa radio kanina = confirmed on the radio [news] earlier

I Googled some words together: "Metro" "TV" "radiation"
and I was surprised to discover that it's been around as early as May 2008. The message wording and details are almost unchanged.
click image to enlarge

I also found Metro TV on Wikipedia. It's not international. It's a local 24-hour news channel, and the only "internationality"(?) it has (based on the website) is Indonesia Now, their internationally broadcast program about Indonesia.

[Used without permission, but for illustration and identification purposes only. No copyright infringement intended. This link refers to the image details on Wikipedia: http://en.wikipedia.org/wiki/File:Metrotv.jpg]
------

One good thing about this is that I started blogging again. Another is that I discovered that Conan O'Brien has come back to life! ='D

(headline with that nice pink arrow)


I can't turn off my cellphone at 11pm when I can help it. Someone might call me up.

~LAI†

My links now open in new window

Today I implemented this code in my Shadouness blog so that clicking any links in my posts will open a new window:

Make All Links Open In A New Window 
http://blogging.nitecruzr.net/2008/02/make-all-links-open-in-new-window.html

Instead of coding each individual link to a blog, picture, or web site, you can make all links within your blog open in a new window. Simply add a "<base target='_blank' />" to your blog, in the header.

Find
<head>

And change that to:
<head>
<base target='_blank' />



Thanks to the wonderful blog The Real Blogger Status.
______
EDIT 12-05-2009, 15:05: I reverted to the old link behavior. This new one gets somewhat annoying :'p It's OK if you use shortcut keys to navigate while browsing, but few people do that.
______
EDIT 12-08-2010, 22:09: Okay... I'm using the "open in new window" behavior in everything. Heh. I don't want people to go "backing" and "forwarding" with my site and the links that I provide ='p

Bloomberg Innovators TV Series



Last night I caught a new TV series on Bloomberg channel titled Innovators.
A TV program that debuted last October 30 this year, it "brings you people who are changing the way we live, from new ways of interacting with computers and exploring space to high-speed communications and creating in 3D."

That 4th episode of Innovators, "The World Is Not Flat" (this links to the online broadcast of this episode on Bloomberg.com), was a behind-the-scenes look at some of the leaders of visual 3D technology and production, at innovative ways to interact with video interfaces, and at 3D printing technologies that allow for faster and cheaper production of, for example, prototype objects.

______
Other links related to this post:


- See a portion of this episode of Innovators >> DreamWorks' Katzenberg on 3D Animation, Technology: Innovators on YouTube by Bloomberg
Oblong (tech developer) on Bloomberg Innovators (on blog Feld Thoughts)
3D printers by Dimension



Future car fuels

I just saw yesterday early morning the third episode in the 4-part FutureCar series on Discovery Channel.

Wow. I'm really excited about the developments in this field in the automotive industry (and in power generation in general).


Ethanol, biodiesel, solar, water, hydrogen, pure electricity, even air! All of you should see that. Although I've read on autobloggreen.com that there were a lot of inaccuracies in the show, it's still thought-provoking and should start discussion and more action and support towards environment-friendly -- and cheaper -- technologies. Here in the Philippines, I'm not sure how "good" we will be in adopting those technologies. At the moment, I reckon even the term "hybrid car" is alien to car enthusiasts here. And I'm not a car enthusiast, just a techie. (Though if I'm having a car, I'd prefer one that doesn't run on fossil fuel. At the moment I'm eyeing the hybrid Toyota Prius =')

It's a great leap towards a clean environment. Maybe even a step towards a future where money doesn't hold the value it does now. I mean, air and solar power is free. When we don't pay for our car fuels anymore, what else would we not be paying for in the future?