User Profile

Collapse

Profile Sidebar

Collapse
lewish95
lewish95
Last Activity: May 12 '20, 04:59 PM
Joined: Mar 2 '20
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lewish95
    replied to Listview and crystal report.
    You can pass an ADO.NET data source in to crystal and report off it. There are many, many articles dealing with how to do this, so I wont document it here.

    Check out:

    http://developer.emc.com/developer/d...DO_Dataset.pdf http://www.sdn.sap.com/irj/boc/go/po...idelayout=true http://msdn.microsoft.com/en-US/library/ms227354%28v=...
    See more | Go to post

    Leave a comment:


  • lewish95
    replied to HTML video player code
    Code:
    <video controls width="250">
    
        <source src="/media/examples/flower.webm"
                type="video/webm">
    
        <source src="/media/examples/flower.mp4"
                type="video/mp4">
    
        Sorry, your browser doesn't support embedded videos.
    </video>
    See more | Go to post
    Last edited by gits; May 13 '20, 12:42 AM. Reason: added code tags

    Leave a comment:


  • lewish95
    replied to Filling Array
    in C
    Code:
    const array1 = [1, 2, 3, 4];
    
    // fill with 0 from position 2 until position 4
    console.log(array1.fill(0, 2, 4));
    // expected output: [1, 2, 0, 0]
    
    // fill with 5 from position 1
    console.log(array1.fill(5, 1));
    // expected output: [1, 5, 5, 5]
    
    console.log(array1.fill(6));
    // expected output: [6, 6, 6, 6]
    See more | Go to post
    Last edited by gits; May 13 '20, 12:40 AM. Reason: added code tags

    Leave a comment:


  • lewish95
    replied to Report Cannot Access Class Object
    Access checks to see whether the referenced file is currently loaded in memory.
    If the file is not loaded in memory, Access tries to verify that the RefLibPaths registry key exists. If the key exists, Access looks for a named value that has the same name as the reference. If there is a match, Access loads the reference from the path that the named value points to.
    Access then searches for the referenced file in the following locations,...
    See more | Go to post

    Leave a comment:


  • Before actually compiling source the compilation unit is generated from .cpp files. This basically means that all preprocessor directives are computed: all #include will be replaces with content of the included files, all #define'd values will be substituted with corresponding expressions, all #if 0 ... #endif will be removed, etc. So after this step in your case you'll get two pieces of C++ code without any preprocessor directives that will both...
    See more | Go to post
    Last edited by Rabbit; May 12 '20, 10:20 PM. Reason: Removed external link

    Leave a comment:


  • For a start, let’s teach the user to say hello:

    Code:
    let user = {
      name: "John",
      age: 30
    };
    
    user.sayHi = function() {
      alert("Hello!");
    };
    
    user.sayHi(); // Hello!
    Here we’ve just used a Function Expression to create the function and assign it to the property user.sayHi of the object.

    Then we can call it. The user can now speak!...
    See more | Go to post
    Last edited by gits; May 11 '20, 07:13 PM. Reason: use code tags when posting code

    Leave a comment:


  • In this method, the part after the colon is the format specifier. The comma is the separator character you want,
    This is equivalent of using format(num, ",d") for older versions of python.
    we can use my_string = '{:,. 2f}'. format(my_numbe r) to convert float value into commas as thousands separators.
    See more | Go to post

    Leave a comment:


  • lewish95
    replied to Run Local Script On Remote System via SSH
    You were pretty close with your example. It works just fine when you use it with arguments such as these.

    Sample script:

    $ more ex.bash
    #!/bin/bash

    echo $1 $2
    Example that works:

    $ ssh serverA "bash -s" < ./ex.bash "hi" "bye"
    hi bye
    But it fails for these types of arguments:

    $ ssh serverA "bash -s" <...
    See more | Go to post

    Leave a comment:


  • You could blit the highscores onto another surface and then blit this surf onto the screen. To blit the highscore list, use a for loop and enumerate the list, so that you can multiply the y-offset by i. To toggle the highscore surface, you can just add a variable highscores_visi ble = False and then do highscores_visi ble = not highscores_visi ble, and in the main loop check if highscores_visi ble: # blit the surf (press 'h' to update and toggle the...
    See more | Go to post

    Leave a comment:


  • If the user has made no selection when you refer to a column in a combo box or list box, the Column property setting will be Null. You can use the IsNull function to determine if a selection has been made, as in the following example.

    If IsNull(Forms!Cu stomers!Country )
    Then MsgBox "No selection."
    End If
    See more | Go to post

    Leave a comment:


  • While it is best to avoid logic that results in looping through a result set twice, if necessary you need to reset the result set back to the start:-

    mysqli_data_see k($newsQuery, 0);
    See more | Go to post

    Leave a comment:


  • lewish95
    replied to Can I hide the data of a column?
    in .NET
    If you want to hide an entire row or column, right-click on the row or column header and then choose Hide. To hide a row or multiple rows, you need to right-click on the row number at the far left. To hide a column or multiple columns, you need to right-click on the column letter at the very top.
    See more | Go to post

    Leave a comment:


  • lewish95
    replied to Unexpected output of Program
    in C
    I recommend this method over a for (t = 0; t < b; t++). Imagine if you were using 64-bit math, the for loop would take a long time, even on a computer. OP doubling method of a=a+a was on track, but incomplete.

    unsigned a;
    unsigned b;
    unsigned product = 0;
    scanf("%u%u", &a, &b);
    while (b > 0) {
    if (b & 1) {
    unsigned OldProduct = product;
    product +=...
    See more | Go to post

    Leave a comment:


  • lewish95
    replied to Stop network service with init.d For Ubuntu
    To stop and start services temporarily (Does not enable / disable them for future boots), you can type service SERVICE_NAME [action] . For example: sudo service apache2 stop (Will STOP the Apache service until Reboot or until you start it again).
    See more | Go to post

    Leave a comment:


  • lewish95
    replied to Launch Python program on PC
    Run the Python command-line interpreter, under your OS of choice,
    Open Command line: Start menu -> Run and type cmd.
    Type: C:\python27\pyt hon.exe.
    Note: This is the default path for Python 2.7. If you are using a computer where Python is not installed in this path, change the path accordingly.
    See more | Go to post
    Last edited by Rabbit; Apr 29 '20, 06:03 PM. Reason: External links removed

    Leave a comment:


  • The EXCEPT operator is used to exclude like rows that are found in one query but not another. It returns rows that are unique to one result. To use the EXCEPT operator, both queries must return the same number of columns and those columns must be of compatible data types.
    See more | Go to post

    Leave a comment:


  • lewish95
    replied to Code to Launch website using Access 2007
    In the top left of the Access window and then click on the Access Options button. When the Access Options window appears, click on the Current Database tab. Then in the Display Form drop-down, select the forum that you wish to open at startup.
    See more | Go to post

    Leave a comment:


  • lewish95
    replied to Missing Auto Population in three tables
    MySQL doesn't have recursive functionality, so you're left with using the NUMBERS table trick -

    Create a table that only holds incrementing numbers - easy to do using an auto_increment:

    DROP TABLE IF EXISTS `example`.`numb ers`;
    CREATE TABLE `example`.`numb ers` (
    `id` int(10) unsigned NOT NULL auto_increment,
    PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    Populate...
    See more | Go to post

    Leave a comment:


  • If you do not want to provide values for all columns that exists in your table, you've to specify the columns that you want to insert. (Which is logical, otherwise how should access, or any other DB, know for which columns you're providing a value)?

    So, what you have to do is this:

    INSERT INTO MyTable ( Column2, Column3, Column4) VALUES ( 1, 2, 3 )
    Also , be sure that you omit the Primary Key column (which is...
    See more | Go to post
    Last edited by Rabbit; Apr 29 '20, 02:32 PM. Reason: External links removed

    Leave a comment:


  • You search through the list of dates, ignore any dates that are before your reference date, then remember the earliest of those dates.

    Remembering the earliest date is like a regular loop for finding the minimum value.

    Example:

    private static Optional<LocalD ate> findNext(LocalD ate refDate, LocalDate[] dates) {
    LocalDate next = null;
    for (LocalDate date : dates)
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...