Google+: View post on Google+
Post imported by Google+Blog. Created By Daniel Treadwell.
Danny MacAskill Plays Capetown (complete video)
Google+: View post on Google+
Post imported by Google+Blog. Created By Daniel Treadwell.
http://www.newscientist.com/article/dn20832
Google+: View post on Google+
Post imported by Google+Blog. Created By Daniel Treadwell.
RIM announced well in advance of the PlayBook's launch that it would be able…
http://pulse.me/s/1kkGr
Google+: View post on Google+
Post imported by Google+Blog. Created By Daniel Treadwell.
Bear with me while I attempt preparing a mencoder command that converts my multimedia files into something that this darn DVD player can understand.
mencoder -mc 0 -noskip -vf expand=:::::16/9,scale=720:480,hqdn3d,harddup -ovc xvid -oac lavc -channels 6 -xvidencopts fixed_quant=3.8:me_quality=6:noqpel:nogmc:trellis:chroma_me:
chroma_opt:hq_ac:vhq=4:lumi_mask:max_key_interval=300:quant_type=mpeg:
max_bframes=2:closed_gop:nopacked:profile=asp5:autoaspect:bvhq=1
-lavcopts acodec=ac3 -o outfile.avi
The player thinks about playing the file….. then stops thinking and returns to the menu.
This works, but only 2 Audio channels:
mencoder -mc 0 -noskip -vf expand=:::::16/9,scale=720:576,hqdn3d,harddup -ovc xvid -oac mp3lame -xvidencopts fixed_quant=3.8:me_quality=6:noqpel:nogmc:trellis:chroma_me:
chroma_opt:hq_ac:vhq=4:lumi_mask:max_key_interval=300:quant_type=mpeg:
max_bframes=2:closed_gop:nopacked:profile=asp5:autoaspect:bvhq=1
-lameopts vbr=2:q=6:aq=2 -o output.avi input.m4v
This post is a follow on from here.
After some informative comments from a reader, Emre Metin, I’ve decided to highlight some of the things that he’s researched on the topic.
Emre referenced the following sources:
The crux of the argument is summed up in the following statement from Emre:
According to Islam, when something changes its composition until it can not be related to its source, it is considered as a completely different material. This is called istihala.
The paper referenced above in [3], finds that it is possible to identify the source of Gelatin by looking for “marker peptides” that will point the source of the Gelatin as being either Bovine or Porcine. So, has the Gelatin then in face been changed in composition to the point that “it can not be related to its source” ?
Allah knows best. Let’s not deceive ourselves thinking we can deceive our Creator?
I’ve been dabbling since last Friday with Android development. So far, I’ve already released one app on the marketplace because its pretty straight-forward to get something done on the Android platform.
My next challenge was to implement a picture gallery app and I found the following example:
http://www.androidpeople.com/android-gallery-imageview-example/
Also found an example of how to fetch images from the Web:
http://www.androidpeople.com/android-load-image-from-url-example/
So, all I needed to do was merge the two together…
main.xml
<?xml version=”1.0″ encoding=”utf-8″?>
<LinearLayout android:id=”@+id/LinearLayout01″
android:layout_width=”fill_parent” android:layout_height=”fill_parent”
xmlns:android=”http://schemas.android.com/apk/res/android”
android:orientation=”vertical”>
<Gallery xmlns:android=”http://schemas.android.com/apk/res/android”
android:id=”@+id/gallery”
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
/>
<ImageView android:id=”@+id/ImageView01″
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
/>
</LinearLayout>
webGalleryExample.java
package za.co.mtn.webGalleryExample;
import java.io.InputStream;
import java.net.URL;import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.Gallery;
import android.widget.ImageView;
import android.widget.AdapterView.OnItemClickListener;public class GalleryExample extends Activity {
private String[] jamCamURLs = {
“http://path.to.image1.jpg”,
“http://path.to.image2.jpg”,
“http://path.to.image3.jpg”,};
Drawable[] drawablesFromUrl = new Drawable[3];
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
for (int i = 0; i < drawablesFromUrl.length; i++){
drawablesFromUrl[i] = LoadImageFromURL(jamCamURLs[i]);
}
final ImageView imgView = (ImageView)findViewById(R.id.ImageView01);
imgView.setImageDrawable(drawablesFromUrl[0]);
Gallery g = (Gallery) findViewById(R.id.gallery);
g.setAdapter(new ImageAdapter(this));g.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView parent, View v, int position, long id) {
imgView.setImageDrawable(drawablesFromUrl[position]);
}
});
}
private Drawable LoadImageFromURL(String url)
{
try
{
InputStream is = (InputStream) new URL(url).getContent();
Drawable d = Drawable.createFromStream(is, “src name”);
return d;
}catch (Exception e) {
System.out.println(“Exc=”+e);
return null;
}
}
/*public static boolean StoreByteImage(Context mContext, byte[] imageData,
int quality, String expName) {File sdImageMainDirectory = new File(“/sdcard/myImages”);
FileOutputStream fileOutputStream = null;
String nameFile = null;
try {BitmapFactory.Options options=new BitmapFactory.Options();
options.inSampleSize = 5;
Bitmap myImage = BitmapFactory.decodeByteArray(imageData, 0,
imageData.length,options);fileOutputStream = new FileOutputStream(
sdImageMainDirectory.toString() +”/” + nameFile + “.jpg”);
BufferedOutputStream bos = new BufferedOutputStream(
fileOutputStream);myImage.compress(CompressFormat.JPEG, quality, bos);
bos.flush();
bos.close();} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}return true;
}*/public class ImageAdapter extends BaseAdapter {
int mGalleryItemBackground;
private Context mContext;public ImageAdapter(Context c) {
mContext = c;
TypedArray a = obtainStyledAttributes(R.styleable.JamCam);
mGalleryItemBackground = a.getResourceId(
R.styleable.JamCam_android_galleryItemBackground, 0);
a.recycle();
}public int getCount() {
return jamCamURLs.length;
//return mImageIds.length;
}public Object getItem(int position) {
return position;
}public long getItemId(int position) {
return position;
}public View getView(int position, View convertView, ViewGroup parent) {
ImageView i = new ImageView(mContext);i.setImageDrawable(drawablesFromUrl[position]);
i.setLayoutParams(new Gallery.LayoutParams(70, 57));
i.setScaleType(ImageView.ScaleType.FIT_XY);
i.setBackgroundResource(mGalleryItemBackground);return i;
}
}
}
And voila!
By now there are more than a few bog posts like this on how to filter out the resonant frequencies produced by the vuvuzela.
I wasn’t too happy with any of them and thought I’d share what I came up with after some tinkering.
For the impatient:
To install required tools:
sudo apt-get install sox
To test:
play vuvuzela.wav vol 0.9 bandreject 116.56 3.4q bandreject 233.12 3.4q bandreject 466.24 3.4q bandreject 932.48 3.4q bandreject 1864 3.4q
To use:
rec -d|play -d vol 0.9 bandreject 116.56 3.4q bandreject 233.12 3.4q bandreject 466.24 3.4q bandreject 932.48 3.4q bandreject 1864 3.4q
Assuming your default sound input source is the your line-in or tv-tuner.
Updated: I updated the fundamental and harmonics as per this site.
Updated again: The above update should have been better, theoretically, but it isn’t.
Vuvuzela Frequencies
Fundamental: 232.4 Hz
Harmonic 1: 464.8
Harmonic 2: 697.2
Harmonic 3: 929.6
Harmonic 4: 1162
Harmonic 5: 1394.4
Harmonic 6: 1626.8
Harmonic 7: 1859.3