Search found 84 matches

by nikobordx
Thu 07 Oct 2010, 10:25
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Close file

Hi Mobeus and other, In fact you can close the file if you want ! Use pointer ! [indent=4] init fn : string = "/tmp/test.sh" doit(fn) def doit (filename : string) fp0 : FileStream* = FileStream.open (filename, "w") fp1 : unowned FileStream = fp0 fp1.puts ("ls /root") fp...
by nikobordx
Sat 11 Sep 2010, 09:09
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Hi Micko, I made some changes in your code to avoid warnings ! /*power applet, 01micko 20100910*/ /*thanks to technosaurus and nikobordx*/ /*icons must be in /usr/share/icons*/ [indent=4] /* Build with valac --pkg gtk+-2.0 --pkg gdk-x11-2.0 eightychg.gs */ uses Gtk Gdk init Gtk.init (ref args) var t...
by nikobordx
Tue 31 Aug 2010, 15:11
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Try this: [indent=4] // Build with valac --pkg gio-2.0 yourfile.gs init create_new_file() // Use this function when file is not exist def static create_new_file () var file = File.new_for_path("test.sh") var thefile_stream = file.create (FileCreateFlags.NONE, null) var data_stream = new Da...
by nikobordx
Tue 31 Aug 2010, 10:16
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

I made only 2 small samples with libsoup:
http://code.valaide.org/content/genie-l ... ple-sample
http://code.valaide.org/content/genie-l ... ple-server

I can help you if you post your code (if your code is not top secret ! :D )

Nicolas.
by nikobordx
Tue 31 Aug 2010, 09:31
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Hi everyone, growler: Why not using test : array of string = {"/root/my-applications/PointOfSale.sqlite", "SELECT * FROM currencies"} and change number of your "args" ? Mobeus: You don't need to specify to close the file because it is automatically closed! In GLib's vap...
by nikobordx
Mon 30 Aug 2010, 17:49
Forum: Programming
Topic: Genie global and static variables?
Replies: 4
Views: 3146

It's a pleasure to help.

I made some samples here: http://code.valaide.org/search/node/genie
You can find some informations here: http://live.gnome.org/Genie

Nicolas.
by nikobordx
Mon 30 Aug 2010, 09:41
Forum: Programming
Topic: Genie global and static variables?
Replies: 4
Views: 3146

Genie global and static variables?

Hi, Can you try this: [indent=4] uses Gtk init Gtk.init (ref args) var test = new Testwin () test.show_all () Gtk.main () count : int = 1 class Testwin : Window init title = "Test" default_height = 100 default_width = 300 window_position = WindowPosition.CENTER destroy.connect(on_exit_clic...
by nikobordx
Sat 28 Aug 2010, 09:59
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Genie and Sqlite

Hi growler, Can you try this: [indent=4] uses Sqlite class SqliteSample : Object db : Sqlite.Database def callback (n_columns: int, values : array of string, column_names : array of string ) : int for i:int = 0 to n_columns print ("%s = %s\n", column_names[i], values[i]) print ("\n&qu...
by nikobordx
Wed 28 Oct 2009, 13:39
Forum: Unsorted
Topic: Nicoedit 2.3 - text editor with lots of goodies
Replies: 30
Views: 33867

Hi Barry,

Thanks for your message.
I will try to create a parser when i have time.

See you,
Nicolas.
by nikobordx
Wed 28 Oct 2009, 13:36
Forum: Unsorted
Topic: Nicoedit 2.3 - text editor with lots of goodies
Replies: 30
Views: 33867

Hi, seaside: The shortcut for "find next" is "F3" and F2 is for "find prev". Ctrl-G is for "goto" line dialog. Yes i will add enter as shorcut in next version, for the moment, after typing your word to search, press "F3". caleb72 (I know who is behin...
by nikobordx
Mon 26 Oct 2009, 13:16
Forum: Unsorted
Topic: Nicoedit 2.3 - text editor with lots of goodies
Replies: 30
Views: 33867

Hi Barry, Your idea is not bad, but i don't really know how to make this. I don't know about the html language, and i don't think there is an api for converting a sourceview or textview to html. I think the most simple way is to use a parser who automatically add the color for word in html format, p...
by nikobordx
Sat 24 Oct 2009, 09:04
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Hi Caleb,

If you have another question you can contact the "genie" creator Jamie at jamie.mccrack@gmail.com

Nicolas.
by nikobordx
Fri 23 Oct 2009, 17:42
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Hi Caleb,

For the first i don't know !
Try this:

def do_action (
parameter1
parameter2
)

For the second i use:

test : string = """
blah blah blah
blah blah blah blah blah
blah blah blah blah blah blah blah
"""

And it's work !

Nicolas.
by nikobordx
Wed 21 Oct 2009, 08:36
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Hi Caleb,

I've created some gtk examples in http://code.valaide.org/

I'm also working on a code generator for genie, and i will make a website with many sample.

Nicolas.
by nikobordx
Sun 20 Sep 2009, 11:59
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

by nikobordx
Sun 20 Sep 2009, 11:56
Forum: Unsorted
Topic: Nicoedit 2.3 - text editor with lots of goodies
Replies: 30
Views: 33867

Hi, I made a new version of NicoEdit (2.4) News: When opening a document, the file browser start from the last used directory. When a new document is created, it appear in the history menu. When you press F5, a dialog is opened with history menu. When document is modified with another texteditor, Ni...
by nikobordx
Wed 16 Sep 2009, 12:37
Forum: Unsorted
Topic: Nicoedit 2.3 - text editor with lots of goodies
Replies: 30
Views: 33867

Cool !

Thanks for testing it !

What features do you want in a new version of NicoEdit ?

Nicolas.
by nikobordx
Wed 16 Sep 2009, 12:09
Forum: Unsorted
Topic: Nicoedit 2.3 - text editor with lots of goodies
Replies: 30
Views: 33867

For NicoEdit, see newer post !

Nicolas.
by nikobordx
Wed 16 Sep 2009, 08:54
Forum: Unsorted
Topic: Nicoedit 2.3 - text editor with lots of goodies
Replies: 30
Views: 33867

Hi, I have no problem with fullscreen. Can you go to NicoEdit source directory, open the file wscript_build and replace the line 11 by this: ccflags = ['-g', '-include', 'config.h'], Save, rebuild (./waf configure && ./waf build) and install (./waf install). Then, in a terminal, type: gdb ni...
by nikobordx
Tue 15 Sep 2009, 14:06
Forum: Programming
Topic: Vala and Genie programming
Replies: 516
Views: 309871

Hi again,

I make a new version of NicoEdit.

This version correct a bug found on 2.3 when you use the fullscreen.

Download it here: http://www.murga-linux.com/puppy/viewto ... h&id=21799

See you,
Nicolas.