• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

AltME groups: search

Help · search scripts · search articles · search mailing list

results summary

worldhits
r4wp5907
r3wp58701
total:64608

results window for this page: [start: 18301 end: 18400]

world-name: r3wp

Group: MySQL ... [web-public]
Dockimbel:
24-Jun-2006
If some of you still have troubles connecting to a v4+ MySQL server 
with the last driver v1.0.6, please give a try to a new beta version 
(1.0.7) found here : http://softinnov.org/tmp/mysql-protocol.r
Dockimbel:
24-Jun-2006
If you've set up your MySQL server using a PHP tool like phpMyAdmin, 
your users are probably created with the OLD_PASSWORD mode, even 
if you're using v5+ servers (it's a PHP issue). My driver v1.0.7 
should allow you to connect flawlessly to such configured server. 
Please try it and give me some feedback.
Henrik:
24-Jun-2006
docKimble, I just thought of something: what if, for MySQL, a time 
out is not the same as reconnecting to a restarted server?
Dockimbel:
24-Jun-2006
I don't understand your question. Could you explain a little more 
?
Dockimbel:
24-Jun-2006
When a new request is sent through a timeout-ed connection, my driver 
will close the port and try to reconnect to the server. It tries 
3 time and if it fails, generates an error.
Joe:
22-Aug-2006
I am using mysql-wrapper.r . In function db-last-insert-id there 
should be one less "first" command to get the result. I think this 
is a bug, pls confirm
Gabriele:
22-Aug-2006
if the behavior of the mysql-protocol has changed lately, then yes. 
when i wrote that, it needed that "first". (i used that function 
a lot so I know it worked)
Gabriele:
22-Aug-2006
i used db-cached-query for vid LISTs, gives a huge speedup without 
using too much memory. (i had a custom list style though that was 
optimized for this). i don't have a simple example at hand... :(
Joe:
22-Aug-2006
Yes, gabriele , it's not a bug. I got confused by the three first 
, I think a clear way to code it would be "first first copy db" to 
indicate first value of the first row
Gabriele:
12-Sep-2006
the mysql program does this automatically when you give it a file 
(using ; as separator)
Will:
12-Sep-2006
from here http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
I thing the adjacency list model would be a good solution, or is 
there something better withmysql 5 and stored procedures? or something 
in rebol?
MikeL:
13-Sep-2006
I was just on the mySQL site and did a search for REBOL and was surprised 
to find 0 hits.
Joe:
14-Sep-2006
will, that is a great article. It explains why the adjacency list 
model is not good enough b/c it's not normalized
Will:
14-Sep-2006
wops, I actually meant the" the nested set model" would be a good 
solution, had to write way too much code to retrive, cache, etc with 
the adjacency list model. Still wondering if some good rebol fellow 
has code ready, something like the article but with stored procedures? 
Anything better? mmm, and what if I'd like geolocalization, should 
I buy a book about PostGIS? please tell me there is a easier way! 
thx ;-)
Dockimbel:
16-Sep-2006
The new MySQL web site is much less third-parties friendly. It looks 
like MySQL doesn't want to give much attention on alternatives drivers. 
They want ppl to use their own drivers and nothing other. The new 
MySQL protocol licence is more restrictive than before. They described 
a GPLed protocol concept (which a IMO, a very stupid concept...) 
See : http://dev.mysql.com/doc/internals/en/licensing-notice.html
Dockimbel:
16-Sep-2006
Btw, I've released an alpha version of a new MySQL driver implementation 
: complete rewrite from scratch to be fully async under UniServe, 
 optimized decoding in speed (faster code, streaming decoding, etc...), 
supports only servers v5+. You'll find it in the latest UniServe 
archive (see UniServe group for link)
Dockimbel:
16-Sep-2006
Here's a short example :
Luca:
28-Sep-2006
A query of mine loops and I can not understand the reason.
Luca:
28-Sep-2006
I gave a look to the protocol and found that :
Luca:
28-Sep-2006
* defrag-read port pl/buffer std-header-length

returns a 'packet-len of 108544 bytes

the next 

* defrag-read port pl/buffer packet-len


loops because the 'read within 'defrag-read  retrieves only 108543 
bytes.

Any idea on how I can deal with this problem?
Dockimbel:
28-Sep-2006
I'm aware of only one case where my protocol implementation may fail 
with a size difference of 1 byte between expected size and received 
size: that's the compression header case. This case can only happen 
when the client send a compression flag to the server. My driver 
never send such flag, so this case should never happen.
Dockimbel:
28-Sep-2006
2) Get a packet analyser tool (Ethereal for example) and try to track 
the TCP exchange on port 3306 to see what the server is really sending 
to the client.
Dockimbel:
28-Sep-2006
4) If all options failed, turn trace/net on, run a test, log all 
exchanges with the server and send it to me by email for analysis.
Dockimbel:
28-Sep-2006
So, it looks like a bad read buffer size setting.
Dockimbel:
28-Sep-2006
Luca, let's try a more cleaner fix for this issue, replace the following 
code :
Luca:
28-Sep-2006
Just a moment...
Oldes:
29-Sep-2006
I use the protocol with MySQL 4.1.5 and 5.0.22 and never noticed 
such a problem.
Oldes:
29-Sep-2006
But I'm not storing such a big data
Tim:
7-Oct-2006
I'm preparing to switch my OS to a slack partition with MySQL 4.1 
(I believe)
Tim:
7-Oct-2006
OOPS! didn't mean to hit ENTER. sorry. Anyway, there used to be a 
test site at http://powerofq.com- it is no longer available, I believe 
that the test module was 'mysqlprot. are those resources still available?
Dockimbel:
1-May-2007
- There's now a new preferred way to query data, the SEND-SQL global 
function. The INSERT/COPY methods are still available for cases where 
finer-grained control or ressources optimization is required. Example:


send-sql [ /flat ] [ /named ] [ /raw ] db "SQL query or server command"
Dockimbel:
1-May-2007
rebol.org is RT's property. My driver is a free concurrent to RT's 
commercial one.
Dockimbel:
1-May-2007
don't you think it would be a problem for RT ?
Maxim:
1-May-2007
but in any case, rebol.org is a community space.  although the site 
H/W and domain is "owned" by RT ,  the actual service has no useage 
limits AFAIK.
Maxim:
1-May-2007
henrik, maybe not... who says RT won't offer plugins for a fee?
Dockimbel:
1-May-2007
If you think it's ok with RT, you can put a copy of the new driver 
in rebol.org once I release it (should be tonight).
Sunanda:
1-May-2007
I think that's a great idea, Doc!
***

RT own the domain for rebol.org (and pay all the hosting charges).

They have never vetoed any scripts .... the topic has never come 
up.


Publishing to REBOL.org leaves you with all your ownership rights 
(unlike some libraries that claim ownership on any contributions). 
All REBOL.org requires is the non-exclusive right to publish the 
script and its documentation:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/boiler.r?display=script-owner-faq
Sunanda:
1-May-2007
As a script owner on REBOL.org you have access to up-to-the-minute 
access and download stats.
Dockimbel:
1-May-2007
I see that rebol.org has improved a lot. Good work guys!
Dockimbel:
1-May-2007
Is there a top 10 most downloaded scripts ? (could be usefull to 
newcomers)
Sunanda:
1-May-2007
There's a top 250 most popular scripts -- available if you are logged 
on:

http://www.rebol.org/cgi-bin/cgiwrap/rebol/script-popularity.r?top=250

The popularity rating is an imperfect attempt to factor out downloads 
by bots (and many other factors) and arrive at something meaningful.
Dockimbel:
1-May-2007
Can I upload a ZIP archive or does it require to upload only a single 
REBOL script ?
Maarten:
6-May-2007
even if 'argument is a SQL query in its own?
Dockimbel:
6-May-2007
You remind me that I should add a few lines about secure programming 
practices in the driver documentation.
Will:
7-May-2007
will send a query like:
Dockimbel:
13-May-2007
Interesting case, you're right, it may confuse the multistatement 
processing, I'll make a fix for that asap.
Terry:
22-May-2007
Am I missing something wihen querying multiple columns... seems I 
get the results as a single string.. 
ie: send-sql "select a, b from table";

returns something like     "aresultbresult" ?
Dockimbel:
22-May-2007
Beta release v1.1.1 with a fix for the semicolon issue in SQL strings 
: http://softinnov.org/tmp/mysql-protocol.r
Dockimbel:
16-Jun-2007
MySQL driver release v.1.1.2 Download at : http://rebol.softinnov.org/mysql

- Fix for an infinite loop issue when the server times out the connection 
(unix platforms).

- TCP keepalive option activated by default (for longstanding idle 
connections).

- Send-cmd function optimized to be a little bit faster and use less 
memory.
- Added new-lines markers to resulting recorsets.

- Added option to switch on/off new-lines marker through port/locals/newlines? 
flag.

- Recycle call removed from read-rows function. Should speed up the 
results a little bit.
- Minor source code cleanup.
Will:
16-Jun-2007
GREAT NEW, a basis benchmark with about 50'000 queries runs in 2:52.26 
minutes and..
Dockimbel:
20-Jun-2007
does this line return a none! value too : send-sql db "SELECT * FROM 
jobs" ?
amacleod:
20-Jun-2007
That did not work either but I seem to have got it. I had previously 
copyed the database to a word like:  data_info: copy db. But that 
gave me an error saying data_info is a set word.  I changed it to 
data_info: send-sql/flat db "select * from jobs" THis seems to work. 
Thanks
Oldes:
13-Jul-2007
I just found that there is a serious bug in sql-escape functions 
which is part of mysql-protocol...  new versions of MySQL for example 
autoconvert "'" to ' which MUST be escaped or you will get error 
or your query may be injected! Current sql-escape function do not 
escape such a cases.
Oldes:
13-Jul-2007
insert db "create table esctest (text TINYTEXT)"
insert db "insert into esctest values ('a')" ;correct

insert db "insert into esctest values ('a'')" ;=== User Error: 
ERROR 1064
Oldes:
13-Jul-2007
hmm.. so it's not so bad.. the problem is just with semicolon:

insert db {insert into esctest values ("a;")} ;=== User Error: ERROR 
1064
Oldes:
14-Jul-2007
and now I have a prove:

not-squote: complement charset "'"
not-dquote: complement charset {"}
ws: charset " ^-^M^/"

data: {INSERT INTO hmm_kalendar_akce VALUES (NULL,9,'posledni-skotsky-kral',NULL,'(Last 
King of Scotland, The)','Poslední skotský král',NULL,NULL,'','http://www.kinoartbrno.cz/?stranka=film&film=posledni-skotsky-kral',0,NULL)}

;the parse part from insert-all-queries function:
	parse/all s: data [
		any [
			#"'" some ["\'" | "''" | not-squote] #"'"
			|{"} some [{\"} | {""} | not-dquote] {"}
			| #"`" thru #"`"
			| e: #";" (
				probe "next query?"
				probe e
			  ) any [ws] s:
			| skip
		]
	]
Dockimbel:
12-Aug-2007
New MySQL release 1.1.3 beta : http://softinnov.org/tmp/mysql-protocol.r

	o Fix for parsing correctly quoted empty strings. (Fix by Oldes)
		

 o Fixed an issue in case of automatic reconnection, the driver looses 
 local
	  flags like 'flat, auto-ping?, etc...(thanks to Will Arp)


 o Fix a remanence issue on /flat and /raw flags in 'send-sql after
	  automatic reconnection. (thanks to Will Arp)


 o Improved port recovery support after a failed request upon a shutdown 
 server.
	  Now the port will resume working once the server is up again.


 o An init SQL string can now be specified for an opened port. That 
 init string

   will be executed after automatic reconnections. (Useful to set, e.g., 
   a
	  specific charset value). Example : 

		  db-port/locals/init: "SET NAMES 'latin2'"
Dockimbel:
3-Oct-2007
MySQL driver release v.1.2.0 - Download at : http://rebol.softinnov.org/mysql
- Changed behaviour and syntax of the READ function.
- Fix for parsing correctly quoted empty strings. (Fix by Oldes)

- Fix for the driver loosing local flags, like 'flat, 'auto-ping?,... 
when reconnecting (thanks to Will Arp)

- Fix a remanence issue on /flat and /raw flags in 'send-sql after 
automatic reconnection. (thanks to Will Arp)

- Improved port recovery support after a failed request upon a shutdown 
server.
- An init SQL string can now be specified for an opened port.
james_nak:
3-Oct-2007
Doc, first of all, thanks for the driver. It is amazing. Secondly, 
I've tried a few ways to be able to detect for an open port without 
the program erroring out. I've just settled on a "error? attempt 
[db/locals]" Do you have any recommendations?
Dockimbel:
27-Jun-2008
Here's a handy function to test if a MySQL server is up :
Dockimbel:
27-Jun-2008
you can also use a simple : port: attempt [ open mysql://... ]
Maarten:
28-Jun-2008
(i.e. the search client protocol that can talk to Sphinx). You can 
also compile a client in mysql and then use sql for your queries.
Will:
2-Jul-2008
here is a short and concise presentation about sphinx http://www.scribd.com/doc/2670976/Sphinx-High-Performance-Full-Text-Search-for-MySQL-Presentation
Pekr:
3-Jul-2008
Guys, what do you think about Tim Johnson's ml remark? Could we help 
him somehow?

-----------------------------------

I've been using mysql-protocol (Mysql Scheme) and cgi for many years 
now. I 

really like it, but I think that /command would bring some advantages, 
if
it can directly access the "C" API for MySQL.


Example: Using the mysql scheme on a tcp/ip connection, I have to 
code

the escaping of special characters for insert and updates and code 
the
unescaping of special characters for retrieval. 


Using the C API from other scripting languages, the mysql_real_escape_string()
function handles the escaping _appropriate_ to the version, and
queries are similarly unescaped.
Gabriele:
3-Jul-2008
about escaping, Nenad's driver has such functions already, so i don't 
see that as an advantage for the native driver. Qtask has a native 
driver too (for speed reason with large record sets), but remember 
that when you use the mysql c library either your app has to be GPL 
or you need a license from MySQL (Qtask has a license).
Will:
3-Jul-2008
I have a mysql wrapper that I use in production but haven't released 
because it need cleaning and docs, but if there is interest I could 
release for testing as is. id does things like:

print .db/get/all/sort/debug [mailing/m mailingLog/ml] [ml.dc m.email 
ml.url] [{ml._mailing=m.id}] [m.email asc ml.dc desc]

SELECT `ml`.`dc`,`m`.`email`,`ml`.`url` FROM `mailing` `m`,`mailingLog` 
`ml` WHERE ml._mailing=m.id ORDER BY `m`.`email`,`ml`.`dc` DESC
print .db/set/debug 'mailing 12 reduce['active false] 
UPDATE `mailing` SET `active`=0 WHERE id=12.0

print .db/get/all/flat/debug '_node_tree [_node _media] [{_tree=? 
AND _issue=?} 5443 22]

SELECT `_node`,`_media` FROM `_node_tree` WHERE _tree='5443' AND 
_issue='22'
..
Graham:
5-Jul-2008
Gabriele, I thought you only needed a license if you are releasing 
your software ....
Gabriele:
6-Jul-2008
graham, i'm not entirely sure, in principle the GPL2 is as you say, 
however i'm not sure if MySQL has a different interpretation here. 
iirc the GPL3 states that being a server for users is the same as 
releasing the software.
Graham:
7-Jul-2008
So, looks like you didn't need a license
Graham:
7-Jul-2008
because of a limited viewpoint
Graham:
7-Jul-2008
With two open source databases to choose from of approximately similar 
functionality and stability, it is hard to understand why one would 
choose the one that has the restrictive license ... I can only imagine 
it is a mind share thing.
Will:
7-Jul-2008
James, thanks for your interest, I' ll upload it in a couple days 
8)
Graham:
12-Jul-2008
ummm.. how do you do a select on a field where the field name has 
a space in it?
Graham:
12-Jul-2008
Why would anyone put a space in a field name??
Graham:
12-Jul-2008
docs say \_ is a space

>> insert db "select middle\_name from patientrecord"

** User Error: ERROR 1064 : You have an error in your SQL syntax; 
check the manual that corresponds to your MySQL server ve
rsion for th...
** Near: insert db "select middle\_name from patientrecord"
Dockimbel:
14-Jul-2008
For a long time, I was reluctant to change the date zero behaviour 
(error throwing), because this "feature" of MySQL look, to me,  like 
very bad design. But recently, I hit the problem too when I inserted 
badly formed dates in a table and wasn't able to read the records 
anymore with my driver.
Dockimbel:
14-Jul-2008
Version 1.2.1 re-released. There was a small error in the 'name-fields 
function preventing it from working. Thanks to Will for reporting 
it.
Will:
5-Aug-2008
James: sorry for the delay, still not found time for docs but her 
it is "as is.."  /debug is your friend, get started, load Dock driver 
, then load  http://reboot.ch/rebol/mysql-wrapper.txtthen:
;set a list of connections:
.db/databases: [
  ;local
  mydb1.local mysql://user:[password-:-127-:-0-:-0-:-1]/mydb1
  mydb2.local mysql://user:[password-:-127-:-0-:-0-:-1]/mydb2

  ;online
  mydb1 mysql://user:[password-:-127-:-0-:-0-:-1]:3307/mydb1
  mydb2 mysql://user:[password-:-127-:-0-:-0-:-1]:3307/mydb2
]
;use a db (if not open will open it automatically):	
.db/use 'mydb1
Dockimbel:
11-Nov-2008
I've just upload a new experimental 1.3 version of MySQL driver supporting 
mutiple queries, stored procedures and multiple result sets. Reading 
mutiple results is done by calling COPY for each result. Download 
at http://softinnov.org/tmp/mysql-protocol-41.r
Dockimbel:
11-Nov-2008
Keep in mind that if you're using SEND-SQL, it already does a implicit 
COPY.
Dockimbel:
11-Nov-2008
It should be considered as a early beta, so test it well before using.
Gabriele:
12-Nov-2008
BTW, Maarten told me that he knows for sure that you can get the 
number of result sets in advance, if he doesn't show up here (he 
can't be much in front of a computer these days), maybe you could 
email him to get more info.
Group: !RebGUI ... A lightweight alternative to VID [web-public]
Volker:
10-Oct-2005
could make a spellcheck-demo with rebgui.
Graham:
10-Oct-2005
I don't think i have a good diff tool on hand.
RebolJohn:
11-Oct-2005
I use sourceforge - winmerge for windows.  It is a gui diff tool 
that works great and is free.
Graham:
11-Oct-2005
Area field editing is still quite problematic :(  Put some text in, 
change it by putting a lot more, and then try it with a lot less. 
 The area widget gets confused and the text starts showing halfway 
down the widget.  Resetting lines-no doesn't help.
Graham:
20-Oct-2005
This very odd .. I have a drop-list .. and the contents of the data 
change each time I drop the list down.  It doesn't happen in Ashley's 
example tour.r, and I don't have an action associated with the drop-list.
Graham:
20-Oct-2005
Ahh... sussed it.  I was composing the layout block inside a function, 
and forgot to copy before passing it to the display function.
Allen:
20-Oct-2005
I'd say your boss was a bit suss, if he hadn't sussed out the meaning.
OneTom:
21-Oct-2005
hey, come on, there is no proper english exists >( its never been 
defined, its only referenced all the time. infact it cant really 
be defined. not even without serious accuracy. the language has too 
many dimensions (time, instance, coordinates, target, etc) and the 
values in this space show a great variation, just we dont wanna notice 
it. infact its not very useful to average clusters of this space. 
specifying these cluster boundaries is a constant source of problems.. 
i live in the middle of europe, at a language-wise very sepecial 
place, but i still can experience this problem easily -- if i want 
to..
Graham:
21-Oct-2005
Sorry, OneTom, it was meant as a joke.
Graham:
22-Oct-2005
Anyone know if rebgui has a dirty? flag for area/text ?
OneTom:
23-Oct-2005
is there anybody here at the moment who can help me develop a csv 
editor interface(, so i can easily translate the qtask interface 
to hungarian)?
Allen:
23-Oct-2005
Will a REBOL spreadsheet script help you? http://www.devx.com/opensource/Article/27454/0
Graham:
26-Oct-2005
edit-list does not display past the border of a drop-list.
Graham:
30-Oct-2005
would be nice to have in the options list, a way to set the background 
colour for the slider.
Graham:
30-Oct-2005
Got some bug when I create a form with a radio button where the pf 
in the engage function is none.
OneTom:
30-Oct-2005
okay, i was lost in the code, i suppose. but how can i select a row 
or rows programmatically?
Graham:
30-Oct-2005
you could try using the engage function .. ie. to simulate a mouse 
click.
OneTom:
30-Oct-2005
but there is already a smart engage function crafted for widgets 
having textediting capabilities
18301 / 6460812345...182183[184] 185186...643644645646647