Handle an object as variable in a loop with programatically, VB.Net
If you have lots of textboxes or other objects in your project and you need to populate and control these objects programatically, use Controls property of form object to handle this.
An example,
While sa.Read
s = s + 1
Me.Controls(“e” & s).Text = sa.Item(1)
Me.Controls(“b” & s).Text = sa.Item(2)
Me.Controls(“x” & s).Text = sa.Item(3)
Me.Controls(“y” & s).Text = sa.Item(4)
End While
The names of textboxes created in the loop and then the values which is stored in the DB assigned textboxes’ .text properties.
Changing FPS rate of a video with FFMPEG
If you want to change frame per second (fps) rate of a video file, you need a codec to achieve that. We can use FFMpeg to change this rate. You can run below script via CMD on windows or CLI on Linux.
ffmpeg -r 10 -f image2 -i C:\test\captures\image%d.png C:\test\captures\test2.flv
A point to keep it mind that,
-r 10 : define new fps rate
image2 : image file format
C:\5d\captures\image%d.png : image files in a directory which will be converted a video
C:\5d\captures\test2.flv : destination file name
If you have any problem of this script please share it with a comment.
Eclipse 3.4 Klavye Kısayolları(Shortcuts)
Eclipse 3.4 için kullanabileceğiniz kısayolları (shortcuts) asağıdaki adreste bulabilirsiniz.
Eclipse 3.4 KeyBoard Shortcuts Reference
Iyi çalışmalar.
JBoss “The procedure entry point JVM_FindClassFromBootLoader could not be located in the dynamic link library in jwm.dll” hatasının çözümü
Eğer aşağıdaki ekrandaki hatayı alıyorsunuz yapılması gereken bilgisayarınızın çevresel değişkenlerindeki JAVA_HOME değerini kontrol etmektir.
Java Unknown column ‘XXXX’ in ‘field list’ Hatası ve Çözümü
Java Unknown column ‘XXXX’ in ‘field list’ Hatasi ve Çözümü
Eger Java ile Mysql yada herhangi bir veritabani ile ugrasiyorsaniz ve asagidaki gibi bir hata aliyorsaniz, bu yazida çözümü sizlerle paylasayim. Çözüm çok kolay olmasina ragmen can sikici olabiliyor.
java.sql.SQLException: Unknown column ‘denmeer’ in ‘field list’
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
(more…)
Java SWT MouseEvent ve MouseListener Kullanımı
Mouseler GUI’leri kullanırken en ço kullanılan araçlardır. SWT üzerinde mouse hareketlerini algılamak ve GUI özelliklerini bu hareketlere göre şekilledinrebilmemizi sağlayan kütüphaneler bulunmaktadır. Aşağıdaki örnekte bir kaç mouse listener örneğini görebilirsiniz.
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.MouseMoveListener;
import org.eclipse.swt.events.MouseTrackListener;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;
import java.util.Random;
import org.eclipse.swt.graphics.Point;
public class mListener {
(more…)

leave a comment