topic
stringlengths
1
63
text
stringlengths
1
577k
Char string size limit still 64k?
Roger I don't think there is a limit on a ( (x)harbour ) variable.. reason I say that is that I am doing fread's and frwites to variables appending them or extracting them from sql tables.. and the size of the binary documents are in the hundreds of kilobytes and megabytes ..Rick Lipkin
Char string size limit still 64k?
Roger,Whether there is a limit or not, I don't know.In FiveWin or Clipper 16 Bit, the limit was indeed 64K.In Fivewin for Harbour/xHarbour the limit exceeds for sure 1 MB (I already used a variable containing more than 1 000 000 characters.
Char string size limit still 64k?
Memoread function in both Harbour and xHarbour can read text files larger than 64K. However functions like memoread and multiline Get seems have limitation of 32K
Char string size limit still 64k?
Roger,Here you have a working sample that shows that there is no limit (up to 4GB or available memory) for MemoRead():[code:1b70hycr] function Main() local cText := Replicate( "This is a test", 10000000 ) MsgInfo( Len( cText ) ) MemoWrit( "test.txt", cText ) cText = "" // we empty the variable cText = MemoRead ( "test.txt" ) MsgInfo( Len( cText ) ) return nil [/code:1b70hycr]
Char string size limit still 64k?
Hello Roger,[quote="Roger Seiler":1rnrbp43]I had previously understood that in 32 bits we don't have the 64k size limit for a char string that we had in 16 bits. However, I saw in the xHarbour documentation for Memoread() that there still is a 64k size limit for a char string in xHarbour.[/quote:1rnrbp43]I just looke at our doc's at <!-- m --><a class="postlink" href="http://www.xharbour.com/xhdn/referenceguide/index.asp?page=home&view=search&q=memoread&id=19161">http://www.xharbour.com/xhdn/referenceg ... d&id=19161</a><!-- m --> but I can not see anything that says something about a limit. Where did you find the 4GB limit doc's?Patrick
Char string size limit still 64k?
Patrick,4GB is the max amount of memory that can be addressed in 32 bits. Its not a Harbour limitation. Its a 32 bits architecture limitation.Such limit does not exist in 64 bits, but again, it has another limit, though much higher.
Char string size limit still 64k?
Thanks Antonio and others for your replies, which were reassuring.Patrick, here is a quote from the \xhb\cod\xHarbour.chm functions section, the topic on Memoread()..."• Return value:MEMOREAD() returns the contents of a text file as a character string. The maximum file size that can be read is 65,535 characters (64K) -- the maximum size of a character string. If <cFile> cannot be found, MEMOREAD() returns a null string (""). "So, I think that this text apparently needs to be corrected. But it's not at all surprising that in such a large help file, there may be just a few things that are a little off. On the whole, I know that the xHb documentation was a huge effort done very carefully.- Roger
Char string size limit still 64k?
Mystery solved. I was inadvertently looking at an obsolete version of the xHb help file. I actually have the current version of it here, but because it had a different file name than the old, it didn't overwrite the old when I updated. The current version does indeed have the correct information, in that the explanation for Memoread() makes no mention of any text size limit.Sorry to waste everybody's time on this! I just need to pay more attention to the file date (in the name) when I open it up.- Roger
Char string size limit still 64k?
[quote="Roger Seiler":2kz6tjrt]Mystery solved. I was inadvertently looking at an obsolete version of the xHb help file.[/quote:2kz6tjrt]Ok! Thanks for the feedback Roger!<!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->Patrick
Char to numeric
Hola,Teneis alguna rutina de conversion de caracter a numerico para este formato ?1.0000000000000000E+03NUM5.2050000000000000E+02NUM...Gracias
Char to numeric
Hola Carles,esa es, si no me equivoco, notacion científica.5.2050000000000000E+02NUM puede traducirse como 5.205 x 10 ^ 2 = 5.205 x 100 = 520.5la E puede traducirse como x 10 ^entonces num = Val( left( string, pos( string, 'E' )-1) ) x 10 ^ Val( substr( string, pos( string, 'E' ) + 1 )ojo que el exponente tambien puede ser negativo, o sea1.0000000000000E-02NUM puede traducirse como 1.0000 x 10 ^ -2 = 1.0000 x 0.01 = 0.01Un saludo,Carlos.PD: ¿Cuando hacemos la segunda reunión?
Char to numeric
Carlos,Gracias, lo voy a probar. [code:2askvw2o]PD&#58; ¿Cuando hacemos la segunda reunión?[/code:2askvw2o]Jejeje, yo ya la haria mañana mismo, peroooo ya ves q o lo hacemos con un recalenton o no va... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Espero, nos podamos reunir prontoSaludotes.
Char to numeric
[quote="Carles":3j3ptat5] Jejeje, yo ya la haria mañana mismo, peroooo ya ves q o lo hacemos con un recalenton o no va... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> [/quote:3j3ptat5]La verdad, si no es un arranque de furia no funciona <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->Ya se me está poniendo viejo el tema que tenía preparado... A ver si reactivamos el tema.Un abrazo,Carlos.
Char to numeric
Carlos,Ya puestos... La operacion inversa como la harias, es decir:520.5 -> Pasarlo a 5.2050000000000000E+02NUMGracias
Char to numeric
Ahí habría que ser más preciso con las especificaciones de la representación. Normalmente te viene dada la cantidad de dígitos tanto del exponente como de la mantisa. En ciencias la mantisa tiene 1 entero, pero en informática está entre 0 y 1Deduciendo lo que escribiste, aparentemente la representación que usas es una mantisa > 1 y < 10, con 2 dígios de exponente con signo. No se vé previsión para el signo de la mantisa, y el prefijo NUM no sé que significado puede tener, pero no tiene una aplicación general, debe ser algo específico a tu aplicación.Num2Sci( nNumero )nExp:= 0nMantisa:= nNumeroWhile Abs( nMantisa ) > 10 nExp ++ nMantisa /= 10EndDoWhile Abs( nMantisa ) < 1 nExp -- nMantisa *= 10EndDoReturn StrTran( Str( nMantisa, 12, 10 ) + 'E' +Str(nExp,3), ' ', '+' )Lo del return lo ajustas a las especificaciones que te den, igual que añadirle el 'NUM' al final.<!-- m --><a class="postlink" href="http://es.wikipedia.org/wiki/Notaci%C3%B3n_cient%C3%ADfica">http://es.wikipedia.org/wiki/Notaci%C3% ... %C3%ADfica</a><!-- m -->un saludo,Carlos
Char to numeric
Carlos,Carai colega. La explicacion vale una cervecita la próxima.Saludotes.C.
Char type Ansi/Oem
Hello, Is there any function for xHarbour in order to transform all strings accordingly to a pre defined type ANSI or OEM ? Antonio
Char type Ansi/Oem
Did you mean [code:3d5m33m0]HB_OEMTOANSI&#40;&#41; HB_ANSITOOEM&#40;&#41;[/code:3d5m33m0] ? EMG
Char type Ansi/Oem
I mean if there is one function to change automaticly the way strings are handled by all rotines in the application. Antonio
Char type Ansi/Oem
I don't know, sorry. EMG
Char values automatically left justified building an array
To All I have a Sql Primary key value that is char(18) .. When I generate a random key I sometimes get a value like this with leading and trailing spaces .. and that is fine. [code=fw:tdo05ny8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aEmp := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />cName := <span style="color: #ff0000;">"Rick Lipkin"</span><br />cEid     := <span style="color: #ff0000;">"     12345678    "</span>    <br /><br />AAdd<span style="color: #000000;">&#40;</span> aEmp, <span style="color: #000000;">&#123;</span>cName,cEid<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:tdo05ny8] When I go to load the above character value cEid into an array the char value is truncated and loads as a left justified value .. similar to : [code=fw:tdo05ny8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />       A                 B<br />|Rick Lipkin    |<span style="color: #000000;">12345678</span>      |<br /> </div>[/code:tdo05ny8] Is there a way to initialize the array to accept the 'exact' value I am loading to the array element ? Thanks Rick Lipkin
Char values automatically left justified building an array
[quote:78vclbu0]When I go to load the above character value cEid into an array the char value is truncated and loads as a left justified value[/quote:78vclbu0] No. The value is not trimmed. Please check again.
CharToOemA / OemToCharA
I am using an old version of FWH (2.8 Sep 2006) and have just upgraded xHb to latest 1.2.1 (Rev 6726) Get the following; xLINK: error: Unresolved external symbol '_HB_FUN_CHARTOOEMA referenced from fivehmx.lib(database.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_OEMTOCHARA referenced from fivehmx.lib(database.obj)'. I can't find any reference to these functions except in winten.h (#define CharToOemA _CharToOemA) About one of the only things I changed was to swap FWH's winapi.ch to xHb's winuser.ch in the fivewin.ch to resolve numerous undefines Anyone have any ideas Thanks Len
Character Search within ComboBox
Hello, Is it possible to search for characrters within a ComboBox for example, if user types chacters CT it move to CTN instead of moving to TUB (first item that begins with T). I tried the following code with no luck. REDEFINE COMBOBOX aGet[5] VAR cUnit ID 105 ITEMS aUnit OF oDlg STYLE CBS_DROPDOWN <<<-------- I JUST ADDED THIS AND HAD NO EFFECT EITHER. aGet[5]:oGet:bKeyDown = { | nKey | ComboSearchItem( nKey, aGet[5] ) } //----------------------------------------------------------------------------// function ComboSearchItem( nKey, oCbx ) local nAt if Len( AllTrim( oCbx:oGet:GetText() ) ) == 1 if ( nAt := AScan( oCbx:aItems, { | c | Left( c, 1 ) == AllTrim( oCbx:oGet:GetText() ) } ) ) != 0 oCbx:oGet:SetText( oCbx:aItems[ nAt ] ) return 0 endif endif return nKey
Character Search within ComboBox
try this: @ 1 , 1 COMBOBOX oCombo VAR cCombo OF oDLG ITEMS aItems STYLE CBS_DROPDOWN SIZE 100 , 200 @ 1 , 20 GET oGet VAR cGet OF oDlg oCombo:lIncSearch := .T. oCombo:oGet:bKeyChar = { | nKey | premi_combo( nKey, oCombo ) } ACTIVATE DIALOG oDlg CENTER RETURN NIL FUNCTION PREMI_COMBO( nKey , oCombo ) DO CASE CASE nKey = VK_RETURN nKey := VK_TAB OTHERWISE ENDCASE RETURN oCombo:KeyChar( ASC( UPPER( CHR( nKey ) ) ) )
Character Search within ComboBox
Hello Marco, I tried this and it did not work. I trying to peform the following within a combobox. For example if the items consists of the following: LOT, LBS, PCS, PKG, PLT, PND, PPL I want the user to be able press keys PLT and move directly item PLT, now when the user presses P it goes to first p, in this case PCS, but then when they press L, it goes to first L, in this case LOT. Is something available that could help? Thank you,
Character Search within ComboBox
Darrell, You just need to do: oComboBox:lIncSearch = .T. With more recent FWH version, it is not needed that the user types the whole word. It searches on each keystroke: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=131939#p131939">viewtopic.php?p=131939#p131939</a><!-- l -->
Character Search within ComboBox
Hi Antonio, I am using FWHX 11.11; I will try now. Thank you,
Character Set
How does one store and then display characters like ô in DBF files????? By the Way, I am reading this in from a txt file on disk.
Character Set
You may use AnsiToOem() and OemToAnsi()
Character Set
I use AnsitoOem on reading and OemtoAnsi on display and still get weird characters. Probably something simple but got me stumped.
Character display problem
Hi, My application reads dialog controls from resource file (dll) and cannot display characters from Latin Extended A Block (c acute, c caron and z caron) under Windows 98. Only s caron is displayed fine. Application is built under Windows XP. Under Windows XP works fine with all characters. When I make application under Windows 98, all characters are fine except z caron (substituted with _ ). But, that application doesn't work fine under Windows XP - characters c caron and c acute are substituted with | (because in resource file in this case c acute is represented with only one byte, not two, and XP cannot read it). I can use two dll's, one for Windows 98 and the other for XP, but still I have a problem with z caron under Windows 98. And, this is a problem ONLY when application reads text from dialog resources. When application sets text to dialog controls ( SetText() --> SetWindowText() ), or to any dc, it works fine! Is there any solution to this?! I tried with Regional settings etc., but it didn't help. Regards Aleksandar
Character display problem
Aleksandar, On those labels where the text is not properly shown, you may define them as "aaaa", "bbbb", etc. in the resource and then REDEFINE SAY ... PROMPT ... ID ... them to the right text.
Character to convert in decimal
Hi Antonio, I have a big problem to convert a character field n5 char(20,0) to a dezimal field betrag(N,12,2) I get the characterfield with csv conversion from bank. -23,58 field n5 or +11.931,76 field n5 with the code betrag = val(n5) the result is -23.00 and not -23.58 or -23,58 the problem is, that there are no decimals. Please can you give me here some examples for conversion. Thank you Best regards Armin
Character to convert in decimal
[code=fw:1p21mcjx]<div class="fw" id="{CB}" style="font-family: monospace;">  betrag = val<span style="color: #000000;">&#40;</span>strtran<span style="color: #000000;">&#40;</span>strtran<span style="color: #000000;">&#40;</span>n5,<span style="color: #ff0000;">"."</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">","</span>,<span style="color: #ff0000;">"."</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:1p21mcjx]
Character to convert in decimal
Vielen lieben Dank. Es funktioniert ausgezeichnet. Bin auch Kärntner vom Gailtal Presseggersee. Bin nächste Woche in Kärnten, darf ich Sie auf ein Dinner einladen? <!-- e --><a href="mailto:arminthurner@gmx.at">arminthurner@gmx.at</a><!-- e --> <!-- w --><a class="postlink" href="http://www.i-pointpartner.net">www.i-pointpartner.net</a><!-- w --> +436801263158 Liebe Gruesse Armin Thurner
Characters from different code tables
Hi, Is it possible to show text in the xBrowse cell with characters inserted into it from another code table (for example, superscript characters of space or volume. As in Word/Excel) ?
Characters from different code tables
I can tell you this much. If the string appears correctly using "?" command, it will appear the same way in XBrowse also. First, test with [code=fw:106tzumk]<div class="fw" id="{CB}" style="font-family: monospace;">? cText</div>[/code:106tzumk]
Characters from different code tables
Good. Is it possible to use different fonts in the same row (not in different rows) of the cell ?
Characters from different code tables
[quote:31sbh8li] superscript characters of space or volume[/quote:31sbh8li] Please give some examples and let us try now. Any character can also be expressed in utf8. Then we can concatenate all utf8 characters
Characters from different code tables
Please first see the functioning of the function [code=fw:id5ja91m]<div class="fw" id="{CB}" style="font-family: monospace;">FW_SayTextHilite<span style="color: #000000;">&#40;</span> hDC, cText, aRect, oFont, nClrText, nClrBack, aWords <span style="color: #000000;">&#41;</span></div>[/code:id5ja91m] This is an example how to use: [code=fw:id5ja91m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> TestHilite<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd<br />   <span style="color: #00C800;">local</span> cText := <span style="color: #ff0000;">"We always eat dinner together"</span><br />   <span style="color: #00C800;">local</span> aWords<br />   <span style="color: #00C800;">local</span> oFont, oBold, oItalic<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-22</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-25</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oItalic <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TIMES NEW ROMAN"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-25</span> ITALIC<br /><br />   aWords   := <span style="color: #000000;">&#123;</span>  <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ALWAYS"</span>, oBold, CLR_HRED, CLR_YELLOW <span style="color: #000000;">&#125;</span>, ;<br />                  <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DINNER"</span>, oItalic, CLR_GREEN, CLR_HGRAY <span style="color: #000000;">&#125;</span>, ;<br />                  <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TOGETHER"</span>, oItalic, CLR_WHITE, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   oWnd:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><br />   oWnd:<span style="color: #000000;">bPainted</span>  := <|hDC|<br />      <span style="color: #00C800;">local</span> aRect    := GetClientRect<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />      aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> += <span style="color: #000000;">100</span><br />      FW_SayTextHilite<span style="color: #000000;">&#40;</span> hDC, cText, aRect, oFont, ;<br />            CLR_BLACK, CLR_WHITE, aWords <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />      ><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> FONTS oFont, oBold, oItalic<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:id5ja91m] [url=https&#58;//imageshack&#46;com/i/poqRscTwp:id5ja91m][img:id5ja91m]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq70/924/qRscTw&#46;png[/img:id5ja91m][/url:id5ja91m] Now you have to use this function to paint text in a cell by defining your own codeblock: [code=fw:id5ja91m]<div class="fw" id="{CB}" style="font-family: monospace;">oCol:<span style="color: #000000;">bPaintText</span></div>[/code:id5ja91m] This codeblock is evaluated like this: [code=fw:id5ja91m]<div class="fw" id="{CB}" style="font-family: monospace;">Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPaintText</span>, <span style="color: #00C800;">Self</span>, hDC, cStrData, oRect:<span style="color: #000000;">aRect</span>, aColors, lHighLite, lSelected <span style="color: #000000;">&#41;</span></div>[/code:id5ja91m]
Characters from different code tables
Thanks! This is what I need
Charla Git en Barcelona
Amigos, la semana que viene, daré una charla de Git en Barcelona. El evento es gratuito, así que si quereis venir, sois bienvenidos. <!-- m --><a class="postlink" href="http://2704537368061661486_e802e903258c2bed114982092536f75c1560f6f2.blogspot.com/b/post-preview?token=7gVY0z4BAAA.iPw6WBpuMoEHCaIYjI6wkQ.25jpceVLNpinsS-vzf-mVA&postId=6214274796061471166&type=POST">http://2704537368061661486_e802e903258c ... &type=POST</a><!-- m --> Saludos.
Charla Git en Barcelona
gracias Rafa <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Me pilla lejos que sino ten por seguro que iria, aunque he de reconocer que ya estoy bastante enamorado de GIT como predijistes que nos pasaría a muchos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Charla Git en Barcelona
Me encantaría poder asistir, pero a mi también me pilla un poco lejos. Ojala se pudiera retransmitir por Internet. Que buenos son los sueños.
Charla Git en Barcelona
Intentaremos grabar el evento, y ponerlo a disposición de todos. No podemos transmitir por Internet, a depender de una Wifi, y no tenemos tampoco la certeza que tendremos acceso a ella, según la sala que nos toque. Saludos
Charla Git en Barcelona
Rafa El link que has dejado escupe esto : Invalid securityToken. Error 403 Queria informarme del lugar y hora, ya sabes que si puedo, asistité encantado !
Charla Git en Barcelona
Parece que lo han cambiado. <!-- m --><a class="postlink" href="http://www.barcelonajug.org/2013/05/control-de-versiones-con-git.html">http://www.barcelonajug.org/2013/05/con ... n-git.html</a><!-- m -->
Charla Git en Barcelona
Gracias Rafa, Esperaré, deseoso, a la posibilidad de ver el evento en video.
Charla Git en Barcelona
Fantástica charla de git ayer en [url:3ee62s1q]https&#58;//foursquare&#46;com/v/espai-jove-la-fontana/4c06d6110e0a2d7f4875ec0c[/url:3ee62s1q] con la gente de #bcnjug @BarcelonaJUG [url:3ee62s1q]http&#58;//www&#46;barcelonajug&#46;org/[/url:3ee62s1q] Como bien dijo Rafa, git te cambia la vida. Si colaboras en proyectos de software, es imprescindible. Si tu proyecto es individual, te facilita la vida y permite que duermas mucho mejor. Todo son ventajas, así que merece la pena el pequeño esfuerzo para aprender los comandos básicos y empezar. En espera de que Rafa pueda subir el video a youtube, comparto la presentacion [url:3ee62s1q]http&#58;//prezi&#46;com/nlvm_faqjau6/usando-git/[/url:3ee62s1q] Gracias Rafa, todo un crack de la oratoria, great speaker !
Charla Git en Barcelona
Solo con la presentación y ya estoy alucinando. Como he podido vivir sin git. Deseando poder ver el video.
Charla Git en Barcelona
Una guia sencilla para empezar [url:amc2dse3]http&#58;//rogerdudler&#46;github&#46;io/git-guide/index&#46;es&#46;html[/url:amc2dse3] Una cheat sheet o chuleta para tener al lado de nuestra pantalla [url:amc2dse3]http&#58;//rogerdudler&#46;github&#46;io/git-guide/files/git_cheat_sheet&#46;pdf[/url:amc2dse3] Comandos básicos [url:amc2dse3]http&#58;//geeksstory&#46;wordpress&#46;com/2012/01/20/git-comandos-basicos/[/url:amc2dse3] Una buena guia de aprendizaje [url:amc2dse3]http&#58;//html5facil&#46;com/tutoriales/git-y-github-desde-la-trinchera-parte-i[/url:amc2dse3]
Charla Git en Barcelona
Juaquin, Muchas gracias por los enlaces.
Charla Git en Barcelona ( Video )
Buenas a todos Tengo en placer de comunicaros que tenéis disponible mi charla sobre Git. Que lo disfrutéis <!-- m --><a class="postlink" href="http://xthefull.blogspot.com.es/">http://xthefull.blogspot.com.es/</a><!-- m -->
Charla Git en Barcelona ( Video )
Gracias Rafa!!!
Charla Git en Barcelona ( Video )
Gracias Rafa. Muy interesante la charla. Lo que mas me ha gustado es el termino "libertad de operar como quiera" En mi caso, no he trabajado tampoco con subversion, algunos conceptos no me han quedado claros. Pero nada que no resuelva internet y realizar pruebas-ensayos. Ojala se puede realizar la propuesta de llevar a cabo otra charla con ejemplos prácticos.
Charla Git en Barcelona ( Video )
Por curiosidad ¿ Que control de versiones usas ?
Charla Git en Barcelona ( Video )
Buena pregunta. Primero, quiero aclarar que en la empresa, programando estoy yo sólo. en cuanto a la pregunta: Hago git a mano usando uestudio y uso ficheros de texto, y la agenda y las tareas de outlook/gmail donde voy anotando los cambios que realizo y donde me llego. Mantengo un proyecto estable en un directorio. Puedo crear un nuevo proyecto para trabajar sobre una ampliación, teniendo este proyecto llamadas a los prgs del directorio definitivo, pero sólo modifico los prgs nuevos de la ampliación Que surge un bug vuelvo al proyecto principal y lo corrigo. Que surge otra ampliación que va a llevar menos tiempo o que es solicitada por un cliente importante, pues creo otro proyecto trabajo sobre él y cuando esta definitivo sustituyo el proyecto inicial por este. Lo que te acabo de describir es el día a día mio y como habrás observado es idéntico al ejemplo que tu expones. No uso versiones de programa de cara al cliente. Es mas una información para mi control. Si algún cliente pide una mejora, en el momento que la tenga acabada y probada se la instalo al cliente. Todas las mejoras están a disposición del resto de los clientes, como van parametrizadas, les explico en que se basa y si les puede venir bien la usan, sino no les molesta. Por lo que es habitual tener versión nueva de los ejecutables. Los clientes agradecen, por lo menos en mi caso, no tener que esperar 15 días/1 mes/2 meses etc. a tener otra versión, la pueden tener rápidamente. Los bugs, toman carácter prioritario. Automáticamente se corrigen y se instalan en los clientes (que haría sin Internet)
Charles Petzold Prepping Metro-Style Programming Book
[url:1clb10a1]http&#58;//www&#46;winsupersite&#46;com/blog/supersite-blog-39/windows8/charles-petzold-prepping-metrostyle-programming-windows-book-142903[/url:1clb10a1]
Charles Petzold Prepping Metro-Style Programming Book
Wow! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
Charles Petzold Prepping Metro-Style Programming Book
The advantage of FiveWin Touch is that we don't need to learn a new language, etc. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> We simply keep using Harbour and FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> (just kidding... but true) <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Charles Petzold Prepping Metro-Style Programming Book
The link is broken.
Charles Petzold Prepping Metro-Style Programming Book
Works fine from here. EMG
ChartFX 3.0
Hola José: Según tengo entendido la versión 3.0 del Chartfx es libre debido a que ya es un producto descontinuado, con gusto puedo enviarla a tu mail privado. Anteriormente este control era muy utilizado para crear graficas pero debido a la limitante de la tecnología VBX solo estaba disponible en FW de 16 bits, ahora con esta nueva revisión que realice de la clase TVBControl() de FWH, estará disponible para 32 Bits. Saludos.
ChartFX 3.0
José puedes enviarme dicha herramienta.
ChartFX 3.0
[quote="Alberto Juárez":dl1v3ln9]Hola José: Según tengo entendido la versión 3.0 del Chartfx es libre debido a que ya es un producto descontinuado, con gusto puedo enviarla a tu mail privado. Anteriormente este control era muy utilizado para crear graficas pero debido a la limitante de la tecnología VBX solo estaba disponible en FW de 16 bits, ahora con esta nueva revisión que realice de la clase TVBControl() de FWH, estará disponible para 32 Bits. Saludos.[/quote:dl1v3ln9] Podrias colgarla en algun site, para poderla descargar? este es mi correo: <!-- e --><a href="mailto:wmormar@yahoo.com.mx">wmormar@yahoo.com.mx</a><!-- e --> Gracias anticipadas
ChartFX 3.0
Podrías enviárme esa herramienta a mí también? <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> a: <!-- e --><a href="mailto:jmurugosa@yahoo.com">jmurugosa@yahoo.com</a><!-- e -->
ChartFX 3.0
Alberto me uno al pedido, seria muy util poder utilizarlo desde (x)Harbour por favor dime de donde lo puedo descargar o si no es molestia me puedes pasar la Clase a este correo : <!-- e --><a href="mailto:evertiz@consorcioinformatico.com">evertiz@consorcioinformatico.com</a><!-- e --> Muchas gracias
ChartFX 3.0
Lo mismo que todos... mi correo es <!-- e --><a href="mailto:leandroalfonso111@hotmail.com">leandroalfonso111@hotmail.com</a><!-- e -->
ChartFX 3.0
[quote="Alberto Juárez":2we6cu7l]Hola José: Según tengo entendido la versión 3.0 del Chartfx es libre debido a que ya es un producto descontinuado, con gusto puedo enviarla a tu mail privado. Saludos.[/quote:2we6cu7l] Neeeegativo mi estimado alberto, lo mismo pensaba y para quitarme de la duda les envie un correo hace poco mas de 2 años y la respuesta que recibi de Software FX para aclarar dicho mal entendido fue esta: [i:2we6cu7l]I'm very sorry to inform you that we have not longer the 16 bits version available for sale, however the product is still under the copyrigth law and the intellectual property belongs to Software-FX inc. As a registered owner of a licence of ChartFX VBX, you are free to distribute a copy of our VBX [b:2we6cu7l]in your final product[/b:2we6cu7l], however, and no matter if the the product is not longer sold by us, you are not allowed to distribute or share the VBX or any other component of the 16 bits version, including documentation or any other file for developing propouses, this means, you are not allowed to share the product with other developers to use it for developing propouses. I encourage you to take a look into our new CharFX Activex product, I'm sure you will find far superior to the 16 bits version.[/i:2we6cu7l] Traduccion: Lamento informate que la version de 16 bits ya no esta disponible para venta, sin embargo el producto sigue protegido por las leyes de derecho de autor y la propiedad intelectual pertenece a Software FX Inc. Como dueño registrado de una licencia del VBX CharFX, eres libre de distribuir una copia de nuestro VBX en TU PRODUCTO FINAL, sin embargo y sin importar si el producto ya no es vendido pro nosotros, no te es permitido compartir ni el VBX, ni ningun otro componente de la version de 16 bits, incluyendo la documentación ni ningun otro archivo con fines de desarrollo, esto significa que no puedes compartir el producto con ningun otro desarrollador para usarlo para crear aplicaciones. Te recomiendo que le eches un vistazo a nuestro ChartFX Activex, estoy seguro que lo encontrarás bastante mas superior que la version de 16 bits.
ChartFX 3.0
Correcto Rene, gracias por la aclaración Saludos
Chat con Fivewin
Saludos a todos los colegas de foro: Ahi les va otra de mis " <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> Marcianadas <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> ": Alguien sabrá por ahí como podré implementar un Chat en mi Sistema, tengo una clase (TCHATTER de R.Avendaño), esta clase trabaja bien con clipper y fivewin, pero no va con Xharbour, el problema es la sintaxis de la clase, ya he corregido algunos errores, pero sigue sin funcionar, si alguien puede ayudarme se lo agradecere mucho. Si así lo permite el Maestro Antonio Linares, puedo subir el archivo con la Clase para que le hechen una revisada.. Saludos... FWH 2.6 + XHarbour 0.45 + XMate
Chat con Fivewin
[quote="cuatecatl82":lanaj0cm]Saludos a todos los colegas de foro: Ahi les va otra de mis " <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> Marcianadas <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> ": Alguien sabrá por ahí como podré implementar un Chat en mi Sistema, tengo una clase (TCHATTER de R.Avendaño), esta clase trabaja bien con clipper y fivewin, pero no va con Xharbour, el problema es la sintaxis de la clase, ya he corregido algunos errores, pero sigue sin funcionar, si alguien puede ayudarme se lo agradecere mucho. Si así lo permite el Maestro Antonio Linares, puedo subir el archivo con la Clase para que le hechen una revisada.. Saludos... FWH 2.6 + XHarbour 0.45 + XMate[/quote:lanaj0cm] Cuate, Contáctame por Messenger y te apoyo
Chat con Fivewin
si mal no recuerdo... el buen amigo Alfredo Arteaga tiene implementado algo en sus sistemas....
Chat con Fivewin
Es realmente muy muy muy simple de hacer un chat con FW, como digo yo, idiotamente simple. Necesitamos: Una tabla dbf compatida con un solo campo tipo caracter, longitud la que consideren Hacen un dialogo que tenga un browse arriba, un get abajo, y un boton enviar. Se abre la tabla compartida Se pone en el get el mensaje y le dan al boton de enviar El resto es facil, hacen appends sobre la tabla, y un timer para que cada determinadotimepo refresque el browse
Chat software
Hello, this first part of the video series shows how to easily integrate an HTML program into a mod harbor program. Target group of these instructions are harbor programmers who take the first steps towards internet programming. Best regards, Otto [url:1afw087y]https&#58;//mybergland&#46;com/fwforum/part1&#46;mp4[/url:1afw087y] Intro Chat Software [url:1afw087y]https&#58;//mybergland&#46;com/fwforum/chatsoftwareintro&#46;mp4[/url:1afw087y]
Chat software
New! Part 3 - video chat software directory/hash [url:12f9370z]https&#58;//mybergland&#46;com/fwforum/managerchat3&#46;mp4[/url:12f9370z]
Chat software
Chat Manager now updates the input of the various chat clients with AJAX [img:66ku9crn]https&#58;//mybergland&#46;com/fwforum/chatmanager&#46;gif[/img:66ku9crn]
Chat software - mod harbour
Awesome Mr. Otto. How is it possible with so few lines to have an operational chat. mod_harbour is fantastic but Bottstrap Studio is too <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Thanks. Jose.
Chat software - mod harbour
Hello, the first videos are ready: Target group of these instructions are harbor programmers who take the first steps towards internet programming. Intro Chat Software [url:1qzd6dnj]https&#58;//mybergland&#46;com/fwforum/chatsoftwareintro&#46;mp4[/url:1qzd6dnj] Part 1 of the video series shows how to easily integrate an HTML program into a mod harbor program. [url:1qzd6dnj]https&#58;//mybergland&#46;com/fwforum/part1&#46;mp4[/url:1qzd6dnj] Part 3 - video chat software directory/hash [url:1qzd6dnj]https&#58;//mybergland&#46;com/fwforum/managerchat3&#46;mp4[/url:1qzd6dnj] Best regards Otto
Chat software - mod harbour
Hello, the first videos are ready: Target group of these instructions are harbor programmers who take the first steps towards internet programming. Intro Chat Software <!-- m --><a class="postlink" href="https://mybergland.com/fwforum/chatsoftwareintro.mp4">https://mybergland.com/fwforum/chatsoftwareintro.mp4</a><!-- m --> Part 1 of the video series shows how to easily integrate an HTML program into a mod harbor program. <!-- m --><a class="postlink" href="https://mybergland.com/fwforum/part1.mp4">https://mybergland.com/fwforum/part1.mp4</a><!-- m --> Part 3 - video chat software directory/hash <!-- m --><a class="postlink" href="https://mybergland.com/fwforum/managerchat3.mp4">https://mybergland.com/fwforum/managerchat3.mp4</a><!-- m --> Best regards Otto
Chat software - mod harbour
Online food ordering Hello, At the moment, it looks that you must place orders in restaurants with your smartphone after coronavirus restart.Therefore we have to develop an APP to take orders quickly. We start with the search for a suitable template. Step 2) We have found a beautiful template and now we are preparing the source code so we can start programming with Harbour. [url:2kbfldgi]https&#58;//mybergland&#46;com/fwforum/restaurant&#46;mp4[/url:2kbfldgi] Best regards, Otto
Chat style how to make chat bubbles as WhatsApp
Good evening forum, I am trying to generate an internal chat in a company, and I would need the visual of the messages to be shown in this way: [img] <!-- m --><a class="postlink" href="https://i.ibb.co/2jbyHmn/image.png">https://i.ibb.co/2jbyHmn/image.png</a><!-- m --> [/ img] I understand php, html and CSS much better and doing it in that language is quite simple, but here I do not have any idea of how I could implement it. Can someone guide me where I should look? Thank you
ChatGPT
Dear friends, How can we provide multi-user access to the staff members of a company? I think a plan like the one I have ($20/month) is not suitable from a privacy standpoint. First, I don't know if it's allowed to share the key, and secondly, all others would see your questions. API request: Here are some questions I asked: "What are your experiences?" Best regards, Otto [code=fw:6p2zywow]<div class="fw" id="{CB}" style="font-family: monospace;">Can you tell me <span style="color: #00C800;">for</span> example how many tokens this <span style="color: #0000ff;">text</span> has: <span style="color: #ff0000;">'In the context of natural language processing and machine learning models like GPT-3, a token generally refers to a sequence of characters that the model uses as a basic unit of input. These sequences of characters can include individual words, punctuation marks, and other symbols.<br /><br />In the case of GPT-3, a token is typically defined as a single word or symbol in a sentence, including spaces and punctuation. When you input a sentence or a piece of text to GPT-3, it breaks down the input into tokens, processes each token, and then generates a response based on the sequence of tokens.<br /><br />The cost of using GPT-3'</span>s API is typically calculated based <span style="color: #0000ff;">on</span> the number <span style="color: #0000ff;">of</span> tokens processed by the model, rather than the number <span style="color: #0000ff;">of</span> requests made or the amount <span style="color: #0000ff;">of</span> <span style="color: #00C800;">data</span> processed. This means that longer sentences or more complex inputs will generally cost more than shorter, simpler ones, as they require more tokens <span style="color: #0000ff;">to</span> process.<span style="color: #ff0000;">'<br />ChatGPT<br />Sure! The text you provided contains a total of 92 tokens.<br /><br />Here'</span>s a breakdown <span style="color: #0000ff;">of</span> the tokens by sentence:<br /><br /><span style="color: #000000;">First</span> sentence: <span style="color: #000000;">32</span> tokens<br />Second sentence: <span style="color: #000000;">36</span> tokens<br />Third sentence: <span style="color: #000000;">24</span> tokens<br />Note that these token counts include spaces and punctuation. In general, longer and more complex sentences will have more tokens, and therefore will cost more <span style="color: #0000ff;">to</span> process using GPT<span style="color: #000000;">-3</span><span style="color: #ff0000;">'s API.<br /><br /><br /><br /><br /><br />User<br />Can you show me the tokens of the first sentence, please?<br />ChatGPT<br />Certainly! Here are the tokens for the first sentence of the text you provided:<br /><br />In<br />the<br />context<br />of<br />natural<br />language<br />processing<br />and<br />machine<br />learning<br />models<br />like<br />GPT<br />3<br />,<br />a<br />token<br />generally<br />refers<br />to<br />a<br />sequence<br />of<br />characters<br />that<br />the<br />model<br />uses<br />as<br />a<br />basic<br />unit<br />of<br />input.<br />Note that tokens can include not only words, but also punctuation and special characters like hyphens and apostrophes.<br /><br /><br /><br /><br /><br />User<br />Please show me also the 2nd sentence<br />ChatGPT<br />Sure! Here are the tokens for the second sentence of the text you provided:<br /><br />These<br />sequences<br />of<br />characters<br />can<br />include<br />individual<br />words<br />,<br />punctuation<br />marks<br />,<br />and<br />other<br />symbols<br />.<br />In<br />the<br />case<br />of<br />GPT<br />3<br />,<br />a<br />token<br />is<br />typically<br />defined<br />as<br />a<br />single<br />word<br />or<br />symbol<br />in<br />a<br />sentence<br />,<br />including<br />spaces<br />and<br />punctuation.<br /><br /><br /><br /><br />User<br />If the cost is &nbsp;$0.06 / 1K tokens &nbsp;how much would the request be?<br />ChatGPT<br />To calculate the cost of processing a certain number of tokens using GPT-3'</span>s API <span style="color: #00C800;">at</span> a <span style="color: #0000ff;">rate</span> <span style="color: #0000ff;">of</span> $<span style="color: #000000;">0.06</span> per <span style="color: #000000;">1</span>,<span style="color: #000000;">000</span> tokens, you can use the following formula:<br /><br /><span style="color: #000000;">cost</span> = <span style="color: #000000;">&#40;</span>number <span style="color: #0000ff;">of</span> tokens / <span style="color: #000000;">1000</span><span style="color: #000000;">&#41;</span> * $<span style="color: #000000;">0.06</span><br /><br />Plugging in the number <span style="color: #0000ff;">of</span> tokens in your <span style="color: #0000ff;">text</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">92</span><span style="color: #000000;">&#41;</span>, we <span style="color: #0000ff;">get</span>:<br /><br /><span style="color: #000000;">cost</span> = <span style="color: #000000;">&#40;</span><span style="color: #000000;">92</span> / <span style="color: #000000;">1000</span><span style="color: #000000;">&#41;</span> * $<span style="color: #000000;">0.06</span><br />cost = <span style="color: #000000;">0.00552</span><br /><br />Therefore, the cost <span style="color: #0000ff;">of</span> processing the tokens in the <span style="color: #0000ff;">text</span> you provided using GPT<span style="color: #000000;">-3</span><span style="color: #ff0000;">'s API at a rate of $0.06 per 1,000 tokens would be approximately $0.00552, which is less than one cent. Note that this is just an estimate, and actual costs may vary depending on the specific API plan and pricing structure used.<br /><br /><br /><br /><br /><br />User<br />How many times could I request for 20 $ a similar question?<br />ChatGPT<br />To determine how many times you could request a similar question for $20, we need to know the cost per request in terms of tokens, as well as the exact number of tokens required to process the question.<br /><br />Let'</span>s assume that the similar question you want <span style="color: #0000ff;">to</span> ask contains approximately the same number <span style="color: #0000ff;">of</span> tokens as the original question you provided <span style="color: #000000;">&#40;</span><span style="color: #000000;">92</span> tokens<span style="color: #000000;">&#41;</span>.<br /><br /><span style="color: #00C800;">If</span> we use the same token pricing <span style="color: #0000ff;">of</span> $<span style="color: #000000;">0.06</span> per <span style="color: #000000;">1</span>,<span style="color: #000000;">000</span> tokens, the cost <span style="color: #0000ff;">of</span> processing <span style="color: #000000;">92</span> tokens would be:<br /><br /><span style="color: #000000;">cost</span> = <span style="color: #000000;">&#40;</span><span style="color: #000000;">92</span> / <span style="color: #000000;">1000</span><span style="color: #000000;">&#41;</span> * $<span style="color: #000000;">0.06</span><br />cost = $<span style="color: #000000;">0.00552</span><br /><br />So the cost <span style="color: #0000ff;">of</span> processing one question with <span style="color: #000000;">92</span> tokens would be approximately $<span style="color: #000000;">0.00552</span>.<br /><br /><span style="color: #00C800;">If</span> you have $<span style="color: #000000;">20</span> <span style="color: #0000ff;">to</span> spend <span style="color: #0000ff;">on</span> similar questions, you can divide $<span style="color: #000000;">20</span> by the cost per request:<br /><br /><span style="color: #000000;">number</span> <span style="color: #0000ff;">of</span> requests = $<span style="color: #000000;">20</span> / cost per request<br /><br />number <span style="color: #0000ff;">of</span> requests = $<span style="color: #000000;">20</span> / $<span style="color: #000000;">0.00552</span><br /><br />number <span style="color: #0000ff;">of</span> requests = <span style="color: #000000;">3623.19</span><br /><br />Rounding <span style="color: #0000ff;">down</span> <span style="color: #0000ff;">to</span> the nearest whole number, you could request the similar question approximately <span style="color: #000000;">3</span>,<span style="color: #000000;">623</span> times <span style="color: #00C800;">for</span> $<span style="color: #000000;">20</span>. However, this is just an estimate based <span style="color: #0000ff;">on</span> the assumptions made, and actual costs may vary depending <span style="color: #0000ff;">on</span> the specific API plan and pricing structure used.</div>[/code:6p2zywow]
ChatGPT
Dear friends, I am working on a tool to request standardized questions to ChatGPT. Best regards, Otto [img:1d0bxe8a]https&#58;//mybergland&#46;com/fwforum/fragen&#46;jpg[/img:1d0bxe8a] [quote:1d0bxe8a]Can you please provide me a list of public holidays for 2024 in the format 'DD.MM.YYYY holiday name'? Also, please calculate the tokens for this request and determine the cost for the inquiry. The fee is $0.06/1K tokens. How many similar requests can I make for $1? Austria ChatGPT: Yes, of course! Here is the list of public holidays for 2024 in Austria in the format 'DD.MM.YYYY holiday name': 01.01.2024 New Year's Day 06.01.2024 Epiphany 10.04.2024 Good Friday 13.04.2024 Easter Monday 01.05.2024 Labour Day 09.05.2024 Ascension Day 20.05.2024 Whit Monday 31.05.2024 Corpus Christi 15.08.2024 Assumption Day 26.10.2024 National Day 01.11.2024 All Saints' Day 08.12.2024 Immaculate Conception 25.12.2024 Christmas Day 26.12.2024 St. Stephen's Day This list contains a total of 14 public holidays for the year 2024 in Austria. For this request, I used a total of 16 tokens. At a fee of $0.06 per 1K tokens, this request costs $0.00096. With a budget of $1, you can make a total of 1041 similar requests. [/quote:1d0bxe8a]
ChatGPT
Otto, Question out of context, how can you put the logo in the toolbar on the right."WinHotel" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
ChatGPT
Otto, A question about ChatCPT is it possible to educate him to answer questions from my customers in technical support? with a single license? or even here in the forum Antonio ! him looking for things here, and it would give you more time off.. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
ChatGPT
Dear Ari, You simply go to chatGPT, make your question and copy here its answer <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
ChatGPT
Ari, this is the code: Best regards, Otto [code=fw:32io9dgt]<div class="fw" id="{CB}" style="font-family: monospace;"> oBar:<span style="color: #000000;">bPainted</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |hDC| PaintBarLogo<span style="color: #000000;">&#40;</span> hDC, oBar <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> PaintBarLogo<span style="color: #000000;">&#40;</span> hDC, oBar <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oRect &nbsp; &nbsp;:= oBar:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hBmp2, hBmp, nZeroZeroClr<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hBmpOld<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nWidth &nbsp; := <span style="color: #000000;">128</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"logo.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hBmp &nbsp;:= ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"logo.bmp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; hBmp &nbsp;:= LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"LINKMAX"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;nWidth &nbsp; := <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">300</span>, nBmpWidth<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">72.0</span> / nBmpHeight<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> HasAlpha<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hBmp2 &nbsp; &nbsp;:= ResizeBitmap<span style="color: #000000;">&#40;</span> hBmp, nWidth,<span style="color: #000000;">72</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ABPaint<span style="color: #000000;">&#40;</span> hDC, oRect:<span style="color: #000000;">nRight</span> - nWidth - <span style="color: #000000;">2</span>, oRect:<span style="color: #000000;">nTop</span>, hBmp2, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBmp2 <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; hBmpOld = SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nZeroZeroClr = GetPixel<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmpOld <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; TransBmp<span style="color: #000000;">&#40;</span> hBmp, nBmpWidth<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, nBmpHeight<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, nZeroZeroClr, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hDC, oRect:<span style="color: #000000;">nRight</span> - nWidth - <span style="color: #000000;">2</span> , oRect:<span style="color: #000000;">nTop</span>, nWidth, oRect:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:32io9dgt]
ChatGPT
Otto, Thank you very much
ChatGPT
Hello Otto; I don't think you need to ask for number of tokens used. Responses contain that information already. Here is a typical Json response I get: [quote:1zhjkydy]{ "id": "cmpl-XxXXXXXXXXXXXXXXXXX", "object": "text_completion", "created": 1683665917, "model": "text-davinci-003", "choices": [ { "text": "\r\nICD-10 Diagnosis Codes: \r\n1. S52.521A - Fracture of lower end of right radius, initial encounter for closed fracture \r\n2. S52.522A - Fracture of lower end of right ulna, initial encounter for closed fracture \r\n3. S52.531A - Fracture of shaft of right radius, initial encounter for closed fracture \r\n4. S52.532A - Fracture of shaft of right ulna, initial encounter for closed fracture", "index": 0, "logprobs": null, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 417, "completion_tokens": 113, "total_tokens": 530 } }[/quote:1zhjkydy] Notice field "usage". Just my 2 cents in case it helps (not that it costs 2 cents) <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Reinaldo.
ChatGPT
Hello Reinaldo, Thank you. I do not use API; I use copy & paste. My ChatGPT plan costs $20 per month, and I think the requests are not limited. I want to find out how much the API key costs. What are your experiences? It seems that 31 similar requests, as you posted, will cost $1. Is that correct? Best regards, Otto [code=fw:3up0za52]<div class="fw" id="{CB}" style="font-family: monospace;">how much does the request cost? the <span style="color: #0000ff;">rate</span> is $<span style="color: #000000;">0.06</span> / 1K tokens. and this is the response json: <span style="color: #ff0000;">"usage"</span>: <span style="color: #000000;">&#123;</span><br /><span style="color: #ff0000;">"prompt_tokens"</span>: <span style="color: #000000;">417</span>,<br /><span style="color: #ff0000;">"completion_tokens"</span>: <span style="color: #000000;">113</span>,<br /><span style="color: #ff0000;">"total_tokens"</span>: <span style="color: #000000;">530</span><br /><span style="color: #000000;">&#125;</span><br />ChatGPT<br />Based <span style="color: #0000ff;">on</span> the response JSON you provided, the total number <span style="color: #0000ff;">of</span> tokens used in the API request was <span style="color: #000000;">530</span> <span style="color: #000000;">&#40;</span>prompt_tokens + completion_tokens<span style="color: #000000;">&#41;</span>.<br /><br />Using the given <span style="color: #0000ff;">rate</span> <span style="color: #0000ff;">of</span> $<span style="color: #000000;">0.06</span> per <span style="color: #000000;">1</span>,<span style="color: #000000;">000</span> tokens, we can calculate the cost <span style="color: #0000ff;">of</span> the request as follows:<br /><br /><span style="color: #000000;">Total</span> number <span style="color: #0000ff;">of</span> tokens / <span style="color: #000000;">1</span>,<span style="color: #000000;">000</span> = <span style="color: #000000;">530</span> / <span style="color: #000000;">1</span>,<span style="color: #000000;">000</span> = <span style="color: #000000;">0.53</span><br /><br />Cost <span style="color: #0000ff;">of</span> the request = <span style="color: #000000;">0.53</span> x $<span style="color: #000000;">0.06</span> = $<span style="color: #000000;">0.0318</span><br /><br />Therefore, the cost <span style="color: #0000ff;">of</span> the request would be $<span style="color: #000000;">0.0318</span>.<br /><br /><br /><br /><br /><br />User<br />how many similar request can I make <span style="color: #00C800;">for</span> <span style="color: #000000;">1</span> $<br />ChatGPT<br /><span style="color: #0000ff;">To</span> calculate the number <span style="color: #0000ff;">of</span> similar requests you can make <span style="color: #00C800;">for</span> <span style="color: #000000;">1</span>$, we need <span style="color: #0000ff;">to</span> divide <span style="color: #000000;">1</span> by the cost <span style="color: #0000ff;">of</span> each request.<br /><br /><span style="color: #00C800;">If</span> the cost <span style="color: #0000ff;">of</span> each request is $<span style="color: #000000;">0.0318</span> as calculated in the previous answer, then:<br /><br /><span style="color: #000000;">1</span> / $<span style="color: #000000;">0.0318</span> = <span style="color: #000000;">31.45</span><br /><br />So, you can make approximately <span style="color: #000000;">31</span> similar requests <span style="color: #00C800;">for</span> <span style="color: #000000;">1</span> dollar, assuming the cost <span style="color: #0000ff;">of</span> each request remains the same <span style="color: #00C800;">at</span> $<span style="color: #000000;">0.0318</span>.<br /><br />&nbsp;</div>[/code:3up0za52]
ChatGPT
Yes, Otto. You are right. $0.989 to be exact. I'm still testing and don't really know how much will it cost. In real life my customers could make over 100 such fetches per day. I would have to pass on the cost. But, for my customers this would represent thousands in savings. To fetch one of those ICD10 codes you have to have tools and people with expertise. And the expert coder needs to read a medical report which takes time. If the $20 max charge is unlimited, then that plan will work better for me. I will let you know how it goes. Let's make plan for another meeting. Reinaldo.
ChatGPT
+1 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
ChatGPT
Ari, [quote:1yrpj7o3]A question about ChatCPT is it possible to educate him to answer questions from my customers in technical support? [/quote:1yrpj7o3] But it is already possible now for you to include information in your requests, and ChatGPT can access that information when generating responses. I am extending my program. In a second memo field, I save knowledge bases, and then I can include them in my requests. Best regards, Otto
ChatGPT
Hello friends, By the way, I found a great plugin for ChatGPT. It creates a button that allows you to select a file and upload it as a knowledge base. It uses async to read the file as text and split it into chunks of size 15,000, which are then sent. Here is a video demonstrating how it works: <!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=iR99LO28nzM">https://www.youtube.com/watch?v=iR99LO28nzM</a><!-- m --> You can download the Chrome plugin, called "ChatGPT File Uploader," from this link: <!-- m --><a class="postlink" href="https://tinyurl.com/5n7rjhar">https://tinyurl.com/5n7rjhar</a><!-- m --> Best regards, Otto
ChatGPT
[quote="Otto":3cb47qvp]Ari, this is the code: Best regards, Otto [code=fw:3cb47qvp]<div class="fw" id="{CB}" style="font-family: monospace;"> oBar:<span style="color: #000000;">bPainted</span>  := <span style="color: #000000;">&#123;</span> |hDC| PaintBarLogo<span style="color: #000000;">&#40;</span> hDC, oBar <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> PaintBarLogo<span style="color: #000000;">&#40;</span> hDC, oBar <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oRect    := oBar:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> hBmp2, hBmp, nZeroZeroClr<br />   <span style="color: #00C800;">local</span> hBmpOld<br />   <span style="color: #00C800;">local</span> nWidth   := <span style="color: #000000;">128</span><br /><br />   <span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"logo.bmp"</span> <span style="color: #000000;">&#41;</span><br />      hBmp  := ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"logo.bmp"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      hBmp  := LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"LINKMAX"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   nWidth   := <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">300</span>, nBmpWidth<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">72.0</span> / nBmpHeight<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> HasAlpha<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />      hBmp2    := ResizeBitmap<span style="color: #000000;">&#40;</span> hBmp, nWidth,<span style="color: #000000;">72</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />      DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />      ABPaint<span style="color: #000000;">&#40;</span> hDC, oRect:<span style="color: #000000;">nRight</span> - nWidth - <span style="color: #000000;">2</span>, oRect:<span style="color: #000000;">nTop</span>, hBmp2, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />      DeleteObject<span style="color: #000000;">&#40;</span> hBmp2 <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      hBmpOld = SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmp <span style="color: #000000;">&#41;</span><br />      nZeroZeroClr = GetPixel<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hBmpOld <span style="color: #000000;">&#41;</span><br />      SetBkColor<span style="color: #000000;">&#40;</span> hDC, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      TransBmp<span style="color: #000000;">&#40;</span> hBmp, nBmpWidth<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, nBmpHeight<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>, nZeroZeroClr, ;<br />         hDC, oRect:<span style="color: #000000;">nRight</span> - nWidth - <span style="color: #000000;">2</span> , oRect:<span style="color: #000000;">nTop</span>, nWidth, oRect:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span><br />      DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3cb47qvp][/quote:3cb47qvp] Please consider this simpler one line code: [code=fw:3cb47qvp]<div class="fw" id="{CB}" style="font-family: monospace;">oBar:<span style="color: #000000;">bPainted</span> := <span style="color: #000000;">&#123;</span> || oBar:<span style="color: #000000;">DrawImage</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\l</span>ogo.bmp"</span>, <span style="color: #ff0000;">"R"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:3cb47qvp] Sample for testing: [code=fw:3cb47qvp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">64</span>,<span style="color: #000000;">48</span> <span style="color: #000000;">2010</span><br /><br />&nbsp; &nbsp;oBar:<span style="color: #000000;">bPainted</span> := <span style="color: #000000;">&#123;</span> || oBar:<span style="color: #000000;">DrawImage</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\l</span>ogo.bmp"</span>, <span style="color: #ff0000;">"R"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3cb47qvp] [url=https&#58;//imageshack&#46;com/i/pn4lWI7Bg:3cb47qvp][img:3cb47qvp]https&#58;//imagizer&#46;imageshack&#46;com/img923/9063/4lWI7B&#46;gif[/img:3cb47qvp][/url:3cb47qvp]
ChatGPT
Hi, today Openai release, ( im in waitlist), chatgpt4 with web browsing and plugins, with webbrowsing and some hacks with pyton, chatgpt is very usefull. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Best regards
ChatGPT
Hello, [img:33basdc8]https&#58;//mybergland&#46;com/fwforum/chatbrowse&#46;jpg[/img:33basdc8] Best regards, Otto
ChatGPT
Dear Otto, Are you using a pluggin ?