Posts

apple mail - Applescript Moving Email to Trash, But Not Deleting from the Server -

Image
i wrote applescript moves selected emails trash. script works fine in regard. problem emails remain on server. there additional code need add that? here's code: using terms application "mail" on perform mail action messages these_messages rule this_rule tell application "mail" set message_count count of these_messages repeat message_count 1 -1 set this_message item of these_messages set this_content (every character of content of this_message) unicode text if "bowles" not in this_content , "patton" not in this_content set theaccount account of mailbox of this_message set mailbox of this_message mailbox "trash" of theaccount end if end repeat end tell end perform mail action messages end using terms it hard troubleshoot without seeing entire script , other rules may causing problem. try adding stop evaluating...

html5 - Decibel Sound Meter for Android -

i new android , looking write app measuring decibel sound level . idea when sound reaches level user gets alert. that's it. can me out this. can using html5/javascript ? appreciated. taken android media player decibel reading for native android/java based decibel calculation mediarecorder: mrecorder = new mediarecorder(); mrecorder.setaudiosource(mediarecorder.audiosource.mic); mrecorder.setoutputformat(mediarecorder.outputformat.three_gpp); mrecorder.setaudioencoder(mediarecorder.audioencoder.amr_nb); mrecorder.setoutputfile("/dev/null"); mrecorder.prepare(); mrecorder.start(); public double getamplitude() { if (mrecorder != null) return (mrecorder.getmaxamplitude()); else return 0; } to calculate db value : powerdb = 20 * log10(getamplitude() / referenceamp); reference: http://en.wikipedia.org/wiki/decibel#field_quantities not sure if in html5 on android

avoiding ScriptRegistrar with Telerik components -

i have mvc site uses telerik grid control. when use scriptregistrar include desired .js files, works fine , files includes are: telerik.common.min.js telerik.textbox.min.js telerik.calendar.min.js telerik.datepicker.min.js telerik.grid.min.js telerik.grid.filtering.min.js however, if include these same files using <script type="text/javascript" src="/scripts/telerik.common.min.js"></script> ....*all others*.... and totally take out scriptregistrar (i want because want use mvc4 bundling support instead) grid not load correctly. the reason of problem scriptregisterar add jquery scripts page startup action. think have 2 work-arounds : 1st: you can add "telerik.common.min.js" file through scriptregisterar , add other telerik script files through mvc 4 bundling component. if so, telerik tries load related script files @ run time. example if have combobox in page, telerik add scripts load script after page load. ignores loa...

windows phone 7 - WP7 Usercontrol cannot be referred in MainPage.xaml -

this how mainpage looks like: <phone:phoneapplicationpage x:class="energyradio.mainpage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:microsoft.phone.controls;assembly=microsoft.phone" xmlns:shell="clr-namespace:microsoft.phone.shell;assembly=microsoft.phone" xmlns:local="clr-namespace:energyradio" xmlns:controls="clr-namespace:microsoft.phone.controls;assembly=microsoft.phone.controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:ignorable="d" d:designwidth="480" d:designheight="800" d:datacontext="{d:designdata sampledata/mainviewmodelsampledata.xaml}" fontfamily="{staticresource phonefontfamilynormal}" fontsize="{staticresource phonefontsi...

Jquery chkbox show hidden content? -

i want create multiplay chkbox, when select show hidden div, work one, how count automatically, if have more chkbox? $(document).ready(function(){ //hide div w/id $("#extra").css("display","none"); // add onclick handler checkbox w/id checkme $("#checkme").click(function(){ // if checked if ($("#checkme").is(":checked")) { //show hidden div $("#extra").show("fast"); } else { //otherwise, hide $("#extra").hide("fast"); } }); }); <form action="" method="get"> <input name="" type="checkbox" value="" id="checkme"> <span> $1 + </span> </form> <div id="extra" style="width:10px; height:10px; background-color:#000;"> 123 </div> try defining <div id="container"> ...

LibGDX - OpenGL Exception on android caused by Texture -

i experiencing strange problem libgdx, when want run android apptication. running on samsung galaxy sii. here main part package com.android.app; import com.badlogic.gdx.game; import com.badlogic.gdx.gdx; import com.badlogic.gdx.graphics.g2d.textureatlas; public class app extends game{ private static textureatlas atlas; @override public void create() { new texture(gdx.files.internal("assets/textures1.png")); } } here android part package com.android.app; import com.badlogic.gdx.backends.android.androidapplication; public class androidapp extends androidapplication { public void oncreate (android.os.bundle savedinstancestate) { super.oncreate(savedinstancestate); initialize(new app(), true); //it crasher if opengl-es 2.0 not used } } i'll error opengl 2.0 not used thread [<12> glthread] (suspended (exception gdxruntimeexception)) glsurfaceviewcupcake$glthread...

osx - Why some picture was rotated is iOS device? -

it's strange same picture display different on pc/mac/ios device. this url of picture: http://imgtest.meiliworks.com/pic/d/b3/0d/1a6157b2828bbcbfadb0d4d114b0_600_2400.jpg it's 77x310 in safari on mac osx 10.7, it's 310x77 in safari on ipad! if download picture , open directly, it's become 310x77. what's wrong picture? your image contains exif orientation tag value of 6 (rotated 90 degrees left). not image viewers handle tag properly. don't respect it, they'll display image rotated 90 degrees right.