Editing Text within SWF files!

Today I was faced with the problem of changing a string within an SWF file, though I took it more of as an interesting challenge.

A colleague of mine had compiled an SWF using Adobe Captivate – an educational material builder.

Unfortunately, some of the paths were hard-coded and hence it only worked correctly on his own laptop…and I was itching to test something out.

So what does someone do ?

1st Attempt: SWF Decompiler and Options

I opened up the file in SoThink SWF Decompiler and attempted to export as an FLV file. More

Combine FLV/MP4 Videos Together

Hey, a quick post about a script I wrote for combining together multiple video files.
It’s based on a post from: http://www.webupd8.org/2009/05/join-and-split-files-including-video-in.html

 

Steps during execution

1) The script converts all mp4 and flv files to MPG files.

2) This is done in order to use the CAT command with > to send all the bytes from all files into one location output.mpg.

3) Finally we convert output.mpg  to MP4 and have the final file.

NOTE: I will check into using possible shortcuts to speed up the process.

#!/bin/bash
echo
echo
echo Combine Videos Together
echo based on http://www.webupd8.org/2009/05/join-and-split-files-including-video-in.html
echo ----------------------------------------------------------
sleep 3
for i in *.mp4; do
 if [ -e "$i" ]; then
   file=`basename "$i" .mp4`
   echo converting "$i" to "$file.mpg"
   ffmpeg -i "$i" -sameq "$file.mpg"
 fi
done

for i in *.flv; do
 if [ -e “$i” ]; then
   file=`basename “$i” .flv`
   echo converting “$i” to “$file.mpg”
   ffmpeg -i “$i” -sameq “$file.mpg”
 fi
done

mkdir temp
mv *.mpg temp
cd temp
cat * > output.mpg
ffmpeg -i output.mpg -sameq final.mp4

Samba in Ubuntu 10.04 – file audit log with full_audit

I am going to talk about how to setup auditing on your samba server in order to be able to view logs in case files disappear from shares (etc).
I’m not aware if anyone has written a tutorial for the specific task on a similar setup so I’ll post about what I did.

This is essentially an update to the blog post:  Samba – file audit log with full_audit by Constantin Bosneaga written in October 2009 but Ubuntu 10.04 uses RSYSLOG instead of SYSLOG. If this works in later versions as well I’d appreciate if someone dropped me a line.

Step 1) Configuring Samba

Instructions from here up to Configuring syslog.

“I have samba-3.0.33 on Gentoo machine. File audit will be done using samba module full_audit. More

How to totally disable suspend/hibernation in ubuntu (If all else fails)

Just wanted to share my own experience and the hack I found to deal with it.

If anyone else needs a temporary solution I think it may work for them if there’s a serious problem with ubuntu linux.I set up ubuntu 10.04 on an IBM thinkcenter A50…(OK, that’s what I was given so I made the best of it).Anyway, I would come back to the lab every morning and find the computer in something like sleep but it would not wake up at all. As I had installed a raid array and had a share this was not good….it was a serious problem. More

Programatically Access Statistics from 3G Mifi/Access Point!!

Specifically I’m going to talk about the Huawei MIFI (Mobile 3G Wifi) E585 though these could be applied to another access point/ mifi. You will need the web debugger FIDDLER (a http request sniffer).

So, probably your MIFI/access point is configured with IP address 192.168.1.1 .

If there are pages that display the statistics (such as those on the E858) there is a chance the information can be accessed through a .php or other dynamic page.

On the E858, accessing http://192.168.1.1/ displays the current total download/upload and flux for the current session. (pictures coming later).

However, if you want to check more analytical statistics such as total usage you have to log on. Fortunately, if the data screen uses a JQuery (or javascript ajax script)  fiddler can be used to sniff and discover the data source (post me a line for more instructions). More

Zooming in on youtube video in IOS (and eveywhere else)

So, do you need to zoom in on your screen on your IPad or IPhone? Need to use zoom during youtube playback and not finding anything except that video recording zoom jailbreak? Well, the solution is accessibility> zoom.

I like to watch my favourite shows sometimes on you tube but the up loaders modify them in order to bypass copyright detectors by adding extra borders and modifying the voice pitches in certain segments.

Deep Space Nine Youtube

Deep Space Nine Youtube

Voyager Youtube

Voyager Youtube

It turns out that the only solution I have found is to use the accessibility setting zoom feature and the three finger gesture.Below I post relevant links for how to enable and use the specific accessibility feature:

RAID 6 Backup Server with SAMBA (windows sharing), E-MAIL Monitoring (Ubuntu), and Remote Desktop

This is in need of an update due to dead links and deprecated content.

Today I’m posting to list the tutorials / steps I used to create the a backup server for the Multimedia, Knowledge, and Web Technologies Group at Athens Information Technology – Athens.

A server resulting from the use of the tutorials below will:

  • be accessible from windows PCs.
  • be able to withstand two disk failures without loss of data.
  • e-mail the administrator upon disk failure within the RAID array to take preventive steps.
  • e-mail the administrator on a scheduled basis with disk statuses outlining bad sectors.

So on to the actual good stuff… More

Extending Quick.CMS editor functionallity

The free version of Quick.cms has a very limited version of the MCE editor. Layers, images, and formatting were very disappointing.

As I wanted to give the biggest freedom to my client for editing their site, I decided to do some digging and upgrade the editor:

The code for the editor is contained within: templatesadminedit.tpl

I commented the original code:

<!–  <script language=”javascript” type=”text/javascript” src=”$config[dir_plugins]tinymce/jscripts/tiny_mce/tiny_mce.js”></script>
  <script language=”javascript” type=”text/javascript”>
    /*tinyMCE.init({
        theme : “advanced”,
        mode : “exact”,
    entity_encoding : “raw”,
        elements : “sDescriptionShort,sDescriptionFull,sContent”,
        theme_advanced_buttons1 : “bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,|,undo,redo”,
        theme_advanced_buttons2 : “link,unlink,anchor,cleanup,help,code,hr,removeformat,visualaid,|,charmap”,
        theme_advanced_buttons3 : “”,
        theme_advanced_buttons4 : “”,
        theme_advanced_toolbar_location : “top”,
        theme_advanced_toolbar_align : “left”,
        debug : false
    });
    */
</script> –>
and added the code for the full version tiny_mce which I found from an example here:
http://tinymce.moxiecode.com/tryit/full.php

 <!– BEGIN TINY_HEAD –>

<script type=”text/javascript” src=”/js/tinymce/jscripts/tiny_mce/tiny_mce.js”></script>
<script type=”text/javascript”>
tinyMCE.init({
        // General options
        mode : “textareas”,
        theme : “advanced”,
        plugins : “autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template”,

        // Theme options
        theme_advanced_buttons1 : “save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect”,
        theme_advanced_buttons2 : “cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor”,
        theme_advanced_buttons3 : “tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen”,
        theme_advanced_buttons4 : “insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage”,
        theme_advanced_toolbar_location : “top”,
        theme_advanced_toolbar_align : “left”,
        theme_advanced_statusbar_location : “bottom”,
        theme_advanced_resizing : true,

        // Skin options
        skin : “o2k7”,
        skin_variant : “silver”,

        // Example content CSS (should be your site CSS)
        content_css : “css/example.css”,

        // Drop lists for link/image/media/template dialogs
        template_external_list_url : “js/template_list.js”,
        external_link_list_url : “js/link_list.js”,
        external_image_list_url : “js/image_list.js”,
        media_external_list_url : “js/media_list.js”,

        // Replace values for the template plugin
        template_replace_values : {
                username : “Some User”,
                staffid : “991234”
        }
});
</script>

Finally I also downloaded and added the newest tiny_mce scripts from http://tinymce.moxiecode.com/download/download.php and everything worked perfectly!! Below is the old and new version!

Office 2007…manual uninstall

This post is for anyone who has had difficulties with office. My office got corrupted and wouldn’t uninstall.Luckily I found the following link:
(How do I uninstall Office 2003, Office 2007 or Office 2010 suites if I cannot uninstall it from Control Panel?) http://support.microsoft.com/kb/290301 that did the job for me 🙂

Takes a long time though…