System Programming

40K

Solutions

18

Articles & Videos

19K

Contributors

Kernel and system programming is the process of creating the software necessary for a computer or device to function and operate other programs. Some operating systems (such as Microsoft Windows) are proprietary, but others, such as the various Linux distributions, are open source.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,
Using these codes (in the project),
        private static Cell InsertCellInWorksheet(string columnName, uint rowIndex, WorksheetPart worksheetPart)
        {
            Worksheet worksheet = worksheetPart.Worksheet;
            SheetData sheetData = worksheet.GetFirstChild<SheetData>();
            string cellReference = columnName + rowIndex;
            Row row;
            if (sheetData.Elements<Row>().Where(r => r.RowIndex == rowIndex).Count() != 0)
            {
                row = sheetData.Elements<Row>().Where(r => r.RowIndex == rowIndex).First();
            }
            else
            {
                row = new Row() { RowIndex = rowIndex };
                sheetData.Append(row);
            }
            if (row.Elements<Cell>().Where(c => c.CellReference.Value == columnName + rowIndex).Count() > 0)
            {
                return row.Elements<Cell>().Where(c => c.CellReference.Value == cellReference).First();
            }
            else
            {
                Cell refCell = null;
                foreach (Cell cell in row.Elements<Cell>())
                {
                    if (string.Compare(cell.CellReference.Value, cellReference, true) > 0)
                    {
                        refCell = cell;
                        break;
                    }
                }
                Cell newCell = new Cell() { CellReference = cellReference };
                row.InsertBefore(newCell, refCell);
                

Open in new window

0
Industry Leaders: We Want Your Opinion!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

I installed C++ builder 6.0 on windows 10.
when I reopen a project , my working directory don't change to new project path and my new forms create on the directory that last time I used "FILE->Open Project" method.
if every body knows how can say to it change to the project path after reopen .
-- thanks reza
0
Hi,
How to adjust to list below, to have also one picture file included, that is retrieved from database?

            using (SqlConnection sqlConn = new SqlConnection(ConfigurationManager.ConnectionStrings["Mssqlconn3"].ConnectionString))
            {
                using (SqlCommand sqlCmd = new SqlCommand("SELECT house_name, address1, address2, price, price_curr FROM house_tab", sqlConn))
                {
                    sqlConn.Open();
                    sqlCmd.CommandType = CommandType.Text;
                    SqlDataAdapter sqlAd = new SqlDataAdapter(sqlCmd);
                    DataTable sqlDt = new DataTable();
                    sqlAd.Fill(sqlDt);
                    sqlConn.Close();
                    if (null != sqlDt)
                    {
                        houseList = sqlDt
                                        .AsEnumerable()
                                        .Select(dataRow => new HouseData
                                        {
                                            house_name = dataRow.Field<string>("house_name"),
                                            address1 = dataRow.Field<string>("address1"),
                                            address2 = dataRow.Field<string>("address2"),
                                            price = dataRow.Field<decimal>("price"),
                                            price_curr = dataRow.Field<string>("price_curr"),
                                        })
         

Open in new window

0
I have a problem with my mouse. When i move it to the right it goes down, when i move it to the left it goes up, when i move it up it goes to the right, when i move it down it goes to the left.

i really want to use my mouse can somebody help me.

Im using Armageddon Aquila-X5
0
Hello, Experts,

I have an issue with a script where I want the end-user once the app is hit to see the main menu. I have four definitions doing separate tasks (updating, querying or adding in records in a database).

I want my main screen to pop up a list of items for the end users to select. I read that a def main() function is the route to go. Tested it out and I have no luck running it.

def main():
    user_exit =  5
    while True:
            #prints statements that lead the end-user to decide what they would like to do
        print('Welcome to the ROWriter Database applet! What would you like to do?')
        print('')
        print('1) Insert a new store CIM info...')
        print('2) Update an existing store CIM info...')
        print('3) Delete an exisiting store CIM info...')
        print('4) Search for CIM')
        print('5) Exit the application...')
    
            #accepts user input and converts it to a string and stores into a variable
        user_input = int(input('Enter option:'))
        #if user input is equal to the exit variable then the application exits
        if user_input == user_exit:
            break
        elif user_input == 1:
                option_one()
        elif user_input == 2:
                option_two()
        elif user_input == 4:
                option_four()
  
if__name__ == "__main__":
    
    main()  

Open in new window

0
Hi,
Is there an example to create list (like what we can get by Gridview) like the following, having Picture file loaded from database?
                <dl id="list_D03_03" onmouseout="mouseOutStyle(this)" onmouseover="mouseOverStyle(this)" class="list rel">
                    <dt class="img rel floatl">
                        <a href="/chushou/3_260353623.htm"  target="_blank">
                            <img width="180" height="135" src="http://img.soufun.com/secondhouse/image/esfnew/search2014/images/loading160_120.gif" src2="http://img11.soufunimg.com/viewimage/agents/2017_05/13/M06/04/17/ChCE4FkWpWiIPlJFAACL93NuA_0AAcAegG1kQ8AAIwP526/220x165c.jpg" onerror="imgiserror(this,'http://img11.soufunimg.com/agents/2017_05/13/M06/04/17/ChCE4FkWpWiIPlJFAACL93NuA_0AAcAegG1kQ8AAIwP526.jpg')" /></a>
                        <p class="txtBg"></p>
                        <p class="txt"><span class="iconImg">10</span></p>
                    </dt>
                    <dd class="info rel floatr">
                        <p class="title"><a href="/chushou/3_260353623.htm"  target="_blank" title="下角</a> 
                            
                        </p>
                        <p class="mt12">
                            2
                            
                            <span class="line">|</span>中
                            <span class='line'>|</span>西
                            <span class='line'>|</span>建
                        </p>
                        

Open in new window

0
I referred to your post :
https://www.experts-exchange.com/questions/20930458/CreateProcess-for-Currently-Logged-On-User-from-Service-running-System-Account.html
and started building i got error in calling of
HANDLE GetCurrentUserToken()
{
      PHANDLE currentToken = 0;
      HANDLE primaryToken = 0;
      DWORD processID = GetExplorerProcessId();
      HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, processID);
      if (!hProcess)
      {
            LogMessage(ErrorExit(TEXT("OpenProcess Error")));
      }
      if (!OpenProcess(PROCESS_ALL_ACCESS, TRUE, processID))
      {
            LogMessage(ErrorExit(TEXT("OpenProcess Error")));
      }
      if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, currentToken))
      {
            LogMessage(ErrorExit(TEXT("OpenProcessToken Error")));
      }

      if(!DuplicateTokenEx(currentToken,TOKEN_ASSIGN_PRIMARY | TOKEN_ALL_ACCESS,0, SecurityImpersonation, TokenPrimary, &primaryToken))
      {
            LogMessage(ErrorExit(TEXT("DuplicateTokenEx Error")));
      }

      return primaryToken;
}


Kindly Help me out
0
Hi all,
We are currently in the process of implementing a new financial system which needs to interfaces with several other business systems to process payments. i.e. the source system interfaces with new target financial system to send instruction on people/businesses that need to be paid.  I want to make sure that the details regarding these interfaces are suitably documented.
What I am struggling with in this regard is what we should be documenting.  Some research highlights different expectations and requirements e.g. interface strategies, interface designs, interface control documents, interface specification etc.

My question is what documents should we be creating for the new system as a whole, what documents we should be creating for each specific interface and what kind of information should be included in each?

Some thoughts I have had that we should be recording are:
•      Mapping tables
•      Validations
•      Ownership & Responsibilities
•      Security requirements
•      Data fields being interfaced
•      Interface method
•      Timings
•      How the interface will be processed
•      Reconciliations

TIA
0
Hello guys im learning visual basic 6.0 and as an assignment i was told to come up with a code that backs up and restores my database. So im asking for your assistance, not with the actual code but the steps that i should take so as come up with it myself. Thanks in advance.
0
Anyone know a program or Dialing system for making interviews over phone.
Like a system or program that you can make interview questions flows easy. Then save the statistics for later review or send them to a partner.  
Either you have a interview system than a Dialer separated they don't need to be combine into one.
0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Mohon bantuan nya
0
I able to disable the menu items in Pdf files . But i couldn't disable the sub menu item in Pdf files through Autoit
0
What is counting semaphore?
0
hi all, please i just installed this panasonic TDA 100 ip intercom telephone system. everything is working fine but i dont know how to programm the call assignment feature, unlike the  1232 where you can do the programming with the operator console. please is there a way to programm this(TDA100) intercom with operator console.
thank you all
0
Write a TSR program that will clear all the contents of the screen and write your ( SYSTEM PROGRAMMING) anywhere on screen of the video text memory available at 0xB8000000 whenever interrupt 8 is invoked.  Also, note that the fore color of SYSTEM PROGRAMMING should be white and back color should be blue.
0
Hello, I need help .. I would like to create Flash Drive (UEFI), which when run (bootable usb) clears all disks (except the USB disk with automated diskpart). (Diskpart -> select disk 1/2/3 and clean all). It would somehow create? Also, if I have the best flashdrive after launch could pull (stored in RAM) .. For example, .bat or .cmd format :) I need this flashdrive to simplify my work. :) Please help me with the creation of the USB flashdrive very please ..
0
The RMC return code is 0. The OS return code is 1140.




Edit: Topic changed from Visual Basic Classic to Unix OS
Graham Skan
0
Hi I would like to retrieve the data from SCOM API in order to make another Aggregated data set for other use. I have search around for books, video , forum and even seek Microsoft for help but Microsoft didn't come back to me yet. but other resource was just very few available discussing about the SCOM SDK.

Can anyone provide some help on that when I using powershell or if better using C# API to retrieve data.

Regards,
Zteffer
0
I am trying to learn and then teach ARM processor and the assembly language. Can anyone point me to the correct direction to start with?  In particular I would like to know the best free simulators for ARM systems.
Thanks
0
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Hello expert,
I would like setup netmap on ubuntu release 15. Thanks.
s.s.
0
How to append sysdate to file name in UNIX shell scripting  and remove the file .

Eg: file_name.CSV

Requirement: file_name_sysdate.CSV
File_name_yyyy-mm-dd.CSV
0
Hi,  we have a mitel 5000 system in one of our facilities.  I am trying to come up with a configurable way that we can make an extension ring though the paging system because it needs to let people on the plant floor know someone is calling.  I know I could open up a phone and solder on some wires to the speaker and attach it through the paging system... but before I plug in my soldering iron, I thought I would ask you find folks if you know of another way.

Thanks in advance!
0
I have an application that opens 1 RAW socket and 1 IP socket.  The RAW socket is used to send out VLAN-tagged UDP packets, and the IP socket is used to send out ICMP request packets.

Sockets are created as follows:
RAW - socket(AF_PACKET, SOCK_RAW, htons(ETH_P_8021Q);
IP      - socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);

I can see that the ICMP request gets sent out properly.  But occasionally the UDP packets get sent out with an ICMP header wrapped around the UDP header, and most of the time they are sent out correctly.  So the packet looks like ETH-IP-ICMP-IP-UDP-PAYLOAD.

Is there any reasonable explanation for this?  Is there something that I can check within the code that may cause this to happen?
0
I have many subscription form hackers putting in false emails and I want to stop them with fail2ban.

This isn't catching any from the log file.  I ran

 fail2ban-regex /path to log file /path to filter.d/http-post-dos.conf

All I get are continuous lines of
Matched time template Day/MONTH/Year:Hour:Minute:Second

# Fail2Ban configuration file
#
[Definition]

# Option: failregex
# Note: This regex will match any GET entry in your logs, so basically all vali$
# You should set up in the jail.conf file, the maxretry and findtime carefully $

failregex = ^<HOST> -.*"POST.*

# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =

Open in new window


Here is an excerpt of my log file

1.1.1.1 - - [23/Jan/2016:07:04:06 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:14 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:18 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:23 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:27 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:32 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:36 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:41 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:45 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"
1.1.1.1 - - [23/Jan/2016:07:04:50 -0500] "POST / HTTP/1.1" 200 12821 "-" "-"

Open in new window


You can see how fast they are hitting my form.

I am on a Centos 6.5 server.

Thanks,
0
Hi All:

I want to implement TR181 by using klish in linux, where can I get the tutorials and starting point?

BR,

Jelly
0

System Programming

40K

Solutions

18

Articles & Videos

19K

Contributors

Kernel and system programming is the process of creating the software necessary for a computer or device to function and operate other programs. Some operating systems (such as Microsoft Windows) are proprietary, but others, such as the various Linux distributions, are open source.