Search:

Type: Posts; User: aks44; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    394

    Re: Coosing a database system

    #-o

    btw, +1 for SQLite
  2. Replies
    7
    Views
    522

    Re: MySQL: Finding outliers

    Tip: WHERE ... NOT IN ...

    Homework?
  3. Replies
    5
    Views
    13,193

    Re: C++ cast from new pointer to reference

    Duh?


    Didn't you mean

    my_fun (...)
    {
    vector<string>* list = new vector<string>();

    fun (*list);
  4. Re: Regexp - my pattern to match numerics sort of works, but not 100%

    As already pointed out by meastp, ^ matches the beginning of the string. Additionally, $ matches the end of the string.


    Just remove both and you'll get the RE you want.


    Also, I'm not sure...
  5. Replies
    5
    Views
    811

    Re: Dynamic and static linking

    Looks like the addresses at which each of the shared libraries will be loaded in memory.

    WRT to dynamic linking, you may also want to document yourself on the ELF file format.
  6. Thread: PHP/MySQL

    by aks44
    Replies
    6
    Views
    271

    Re: PHP/MySQL

    As long as it's a local page... well, it's ok (kinda).

    The thing is, when dealing with unknown clients (ie. as soon as you open your server to anyone else than YOU), you should never ever trust...
  7. Thread: PHP/MySQL

    by aks44
    Replies
    6
    Views
    271

    Re: PHP/MySQL

    UPDATE tablename SET field='data'

    Note the "missing" apostrophes around "field" ;)

    If you really have to surround the field name with something, use backquotes:

    `field`
  8. Replies
    7
    Views
    540

    Re: MySQL database question

    I don't run any, but there are high chances that EW's .db file is an SQLite database.

    If so, should be quite straightforward to export the data...
  9. Re: Multiplatform file archiving and retrieval (best method?)

    libtar + zlib ?
  10. Replies
    2
    Views
    2,381

    Re: Cannot upload files using PHP5 & Apache2

    Hint: http://www.w3.org/TR/html401/interact/forms.html#adef-enctype

    ;)
  11. [all variants] [8.04] No video when starting X (ATI Radeon 9600)

    Trying out 8.04, I'm faced with a kinda annoying problem. As usual, it's a video issue.


    X seems to start fine (I can hear KDE's welcome sound) but my screen stubbornly stays blank (and goes into...
  12. Replies
    14
    Views
    1,014

    Re: Bad Math

    Well, then just use fmod followed by

    if (degree < 0.0)
    degree += 360.0;
  13. Replies
    14
    Views
    1,014

    Re: Bad Math

    while (degree < 0.0)
    degree += 360.0;
    while (degree >= 360.0)
    degree -= 360.0;
  14. Replies
    3
    Views
    1,520

    Re: How to add home directory to Subversion

    You could checkout in an empty directory.

    In that checkout directory, recursively delete all *files* (not dirs) that are not inside a .svn directory (so that you won't overwrite your files in...
  15. Re: [Regular Expression] Matching the same character in different spots?

    Read the manual or search the web? FWIW here's what I found after about 20 seconds : http://www.amk.ca/python/howto/regex/regex.html#SECTION000430000000000000000

    And no, I don't know anything...
  16. Re: [Regular Expression] Matching the same character in different spots?

    The forward slash ( /1 ) should be a backslash ( \1 ).


    EDIT: FWIW that "AttributeError: 'NoneType' object has no attribute 'group'" error means that the regex didn't match at all. You have to...
  17. Re: [Regular Expression] Matching the same character in different spots?

    The concept you're looking for is: back-references (which go together with captures).
  18. Replies
    3
    Views
    831

    Re: How/Where to disable oom_killer in kernel

    Guess what? Searching for "disable oom killer linux kernel" in your favourite search engine would have given you the answer straight away (instead of having to wait like 25mn for someone to reply...
  19. Replies
    6
    Views
    247

    Re: Quick Regex Question

    @stroyan: what about matching eg. <a href="foo"><b>bar</b></a> ? Your ([^<]*?) forbids that.

    @solarwind: the regex you're looking for would probably be along the lines of:
    (case-insensitive, \s...
  20. Replies
    4
    Views
    249

    Re: Good intro Lisp book?

    Some recommend Practical Common Lisp but as far as *I* am concerned I don't like it.

    I found that Paul Graham's books (Ansi Common Lisp and On Lisp) suit better my way of learning.

    Now that's...
  21. Replies
    32
    Views
    11,810

    Poll: Re: [C++} Brace Wars: K&R vs ANSI/ISO

    Why, when the thread's title specifically mentions C++? :p
  22. Replies
    32
    Views
    11,810

    Poll: Re: [C++} Brace Wars: K&R vs ANSI/ISO

    ANSI/ISO style here.
  23. Thread: Is this true?

    by aks44
    Replies
    12
    Views
    557

    Re: Is this true?

    It's probably just as true as going from Python to Lisp.


    /me runs :p
  24. Replies
    5
    Views
    2,092

    Re: Postfix converter question[C++]

    Hint: what is the relation between infix and postfix notations (as far as the data structure goes)?
    Also: recursion.

    ;)
  25. Replies
    6
    Views
    308

    Re: memory allocation question

    That's called a memory leak. Again, you have to delete any new'ed memory, and delete[] any new[]'ed memory.




    The pointer's address obviously stays the same, but the pointed-to address (IOW...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4