Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

System Programming

40K

Solutions

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

Can I assign co line 6 to a phone number as  part of system programming I want this a a 'panic' button to call a specific outside number
0
Free Tool: Port Scanner
LVL 11
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

hi,

what is difference between control shift L and call hierarchy(control+alt+H)  in eclipse debugging the code.
what are best debugging techniques or tips

please advise
0
hi,

are there any good free or cheap online training technical course without monthly fees that i have to pay. I am ok to pay some amount and use the course life time rather pay every month. please advise
0
Dear experts, I ' d like to become a sysadmin but what fields should I focus on? Where are the best resources to selfstudy? Can you pls suggest? Many thanks.
0
I recently downloaded the new version of jaspersoft studio (6.5.0) for eclipse.  I used to be able to choose specific dates for a parameter when previewing a report, now if I pick a specific date it treats it as null.  The only values I can get to evaluate to non-null are the relative dates like "DAY" or "MONTH".

Switching to an older compatibility mode doesn't seem to work either.

DATERANGE("2017-12-22") evaluates to null when I preview.
DATERANGE("DAY") evaluates to the correct Date, 2017-12-22.

Anyone have any thoughts?

Edit: Here's the documentations on Jasper's Date Range object: http://jasperreports.sourceforge.net/sample.reference/daterange/index.html
0
$check_email="select * form users where user email='$email'";
            $run_email = mysqli_query($con,$check_email);
      
            $check = mysqli_num_rows($run_email);
             
               if($check==1){
      
             echo "<script>alert('Email phone already exit,please try another!')</script>";
             exit();
0
I have recently learned C++ and C#. That is, I have taken courses to understand the basics of them and now want to start using them for professional work. I have said I want to take on projects that push me to learn a lot more about these vast programming languages. I have a hardware device name Griffin PowerMate. It is a USB knob/wheel that can be helpful controlling a computer. For some reason, it does not have great support on Window 7, 10. It does have a driver for Window XP and Vista. I cannot get this device to do what I want in Windows 10. However, on a Mac computer, the driver is up to date and does everything I want. So, to me this proves what I want on the Windows side is possible. Is it likely to think that without an SDK from the company I could use C++ or even C# to create a driver for this device?
0
Hi,

can we define only one abstract operation supplied by the SOAP web service? If i have to define more than one how do we do in WSDL?  what is portType in wsdl? please advise
0
hi,

i was reading as below

Throw generic Error Messages − A web service method should use HTTP error messages like 403 to show access forbidden etc.

What HTTP Status Code 201 states?
It means, CREATED, when a resource is successful created using POST or PUT request. Return link to newly created resource using location header.

What HTTP Status Code 204 states?
It means, NO CONTENT, when response body is empty for example, a DELETE request.
i see 200 UNKNOWN No body returned for response




What HTTP Status Code 304 states?
It means, NOT MODIFIED, used to reduce network bandwidth usage in case of conditional GET requests. Response body should be empty. Headers should have date, location etc.



What HTTP Status Code 400 states?
It means, BAD REQUEST, states that invalid input is provided e.g. validation error, missing data


What HTTP Status Code 401 states?
It means, FORBIDDEN, states that user is not having access to method being used for example, delete access without admin rights.



What HTTP Status Code 409 states?
It means, CONFLICT, states conflict situation while executing the method for example, adding duplicate entry.




any good example to test above http status codes?

using post when i tried to create a resourece i got 200 though not 201.

i searched in code for 200 or 201 to change but never found them?
where these numbers are coming from if not from code?
0
Hi,

I was reading as below

Session based authentication − Use session based authentication to authenticate a user whenever a request is made to a Web Service method.

how to do   Session based authentication .

any sample end to end example on this relating to web services ?
0
Free Tool: Site Down Detector
LVL 11
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

hi,
i was reading as below
What is the difference between PUT and POST operations?
PUT and POST operation are nearly same with the difference lying only in the result where PUT operation is idempotent and POST operation can cause different result.
i was not clear. what it mean by post can cause different results?

please advise
0
I was reading as below
https://www.tutorialspoint.com/restful/restful_security.htm

Restriction on Method Execution − Allow restricted use of methods like GET, POST and DELETE methods. The GET method should not be able to delete data.

how to use get to delete a data?
is that is possible even though that is not recommended?
please advise
0
hi,

i was reading as below
https://www.tutorialspoint.com/restful/restful_statelessness.htm

what is the meaning of below

Consider the following URL −

https://localhost:8080/UserManagement/rest/UserService/users/1

If you hit the above url using your browser or using a java based client or using Postman, result will always be the User XML whose Id is 1 because the server does not store any information about the client.

<user>
   <id>1</id>
   <name>mahesh</name>
   <profession>1</profession>
</user>

how result with id 1 is related to statelessness.

since we created new user it created with id 1 and while retrieving we get same value right.

please advise
0
hi,

i was reading below that rest webservices put is for creating
https://www.tutorialspoint.com/restful/restful_introduction.htm

I remember reading some where POST is for create and PUT is to update.

can you please advise which HTTP method for which?

Sr.No.      HTTP Method      URI      Operation      Operation Type
1      GET      /UserService/users      Get list of users      Read Only
2      GET      /UserService/users/1      Get User with Id 1      Read Only
3      PUT      /UserService/users/2      Insert User with Id 2      Idempotent
4      POST      /UserService/users/2      Update User with Id 2      N/A
5      DELETE      /UserService/users/1      Delete User with Id 1      Idempotent
6      OPTIONS      /UserService/users      List the supported operations in web service      Read Only
why it says operation type for POST is N/A where as put is idempotent. what it means?

for working on rest examples why we need both below entries


<dependency>
                  <groupId>javax.ws.rs</groupId>
                  <artifactId>javax.ws.rs-api</artifactId>
                  <version>2.0.1</version>
            </dependency>
            <dependency>
                  <groupId>org.apache.cxf</groupId>
                  <artifactId>cxf-rt-rs-service-description</artifactId>
                  <version>3.0.0-milestone1</version>
            </dependency>


below is fine
<groupId>javax.ws.rs</groupId>
                  <artifactId>javax.ws.rs-api</artifactId>

but why we need cxf as below as well in pom.xml?
0
Hello I found this code here
<html>
<head>

<script>
      var updateRate = 50;    // Lower number gives higher update rate
      var sizeChange = 0.25;  // Lower number gives smaller difference in fontsize per update
                var numberOfLines = 24; // Set this to the number of lines
</script>
<style>



.vline {font-size: 0; margin: 0}
.line {font-size: 0; margin: 0; display: none}
</style>

</head>
<body bgcolor="black" text="white" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" scroll="no">

<div style="position: absolute; left: -100%; top: 20%; width: 300%; height: 80%; overflow: hidden; text-align: center">
<p id="p0" class="line"> </p>
<p id="p1" class="line"> </p>
<p id="p2" class="line"> </p>
<p id="p3" class="line"> </p>
<p id="p4" class="line"> </p>
<p id="p5" class="line"> </p>
<p id="p6" class="line"> </p>
<p id="p7" class="line">All lines about the same length</p>
<p id="p8" class="line">Gives the best result I believe</p>
<p id="p9" class="line">All lines about the same length</p>
<p id="p10" class="line">Gives the best result I believe</p>
<p id="p11" class="line">All lines about the same length</p>
<p id="p12" class="line">Gives the best result I believe</p>
<p id="p13" class="line">All lines about the same length</p>
<p id="p14" class="line">Gives the best result I believe</p>
<p id="p15" class="line">All lines about the same length</p>
<p id="p16" class="line">Gives the best result I believe</p>
<p id="p17" class="line">All 

Open in new window

0
I found this code very helpfull for my church site, but i would like to know if can add a loop so it repeat itself. Thank you
<html>
<head>

<script>
      var updateRate = 50;    // Lower number gives higher update rate
      var sizeChange = 0.25;  // Lower number gives smaller difference in fontsize per update
                var numberOfLines = 24; // Set this to the number of lines
</script>
<style>



.vline {font-size: 0; margin: 0}
.line {font-size: 0; margin: 0; display: none}
</style>

</head>
<body bgcolor="black" text="white" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" scroll="no">

<div style="position: absolute; left: -100%; top: 20%; width: 300%; height: 80%; overflow: hidden; text-align: center">
<p id="p0" class="line"> </p>
<p id="p1" class="line"> </p>
<p id="p2" class="line"> </p>
<p id="p3" class="line"> </p>
<p id="p4" class="line"> </p>
<p id="p5" class="line"> </p>
<p id="p6" class="line"> </p>
<p id="p7" class="line">All lines about the same length</p>
<p id="p8" class="line">Gives the best result I believe</p>
<p id="p9" class="line">All lines about the same length</p>
<p id="p10" class="line">Gives the best result I believe</p>
<p id="p11" class="line">All lines about the same length</p>
<p id="p12" class="line">Gives the best result I believe</p>
<p id="p13" class="line">All lines about the same length</p>
<p id="p14" class="line">Gives the best result I believe</p>
<p id="p15" class="line">All …
0
Hi,

i wrote my web application with web.xml as below

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://xmlns.jcp.org/xml/ns/javaee"
	xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
	id="WebApp_ID" version="3.1">
<welcome-file-list>
    <welcome-file>simple.jsp</welcome-file>
</welcome-file-list>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>MyResources</web-resource-name>
			<url-pattern>/*</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<role-name>myuserrole</role-name>
		</auth-constraint>
	</security-constraint>
	<login-config>
		<auth-method>BASIC</auth-method>
		<realm-name>FILE</realm-name>
	<!-- 	<form-login-config>
			<form-login-page>/login.jsp</form-login-page>
			<form-error-page>/error.jsp</form-error-page>
		</form-login-config> -->
	</login-config>
</web-app>

Open in new window


i added role and username and password to tomcat-users.xml as below

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the 

Open in new window

0
hi,

I am trying below example

http://briansjavablog.blogspot.com/2012/09/spring-jms-tutorial-with-activemq.html

i fired 100 messages as decribed in tutorial and exepcted them to be consumed with message on console.

Intead i am gettign below error


SEVERE: Could not refresh JMS Connection for destination 'jmsReceiveJndi' - retrying using FixedBackOff{interval=5000, currentAttempts=21, maxAttempts=unlimited}. Cause: Cannot send, channel has already failed: tcp://127.0.0.1:8161

under meta-inf context.xml is as below

<?xml version="1.0" encoding="UTF-8"?>
<Context>

   <!--
               Active MQ Connection Factory manages pooled connections
               to the ActiveMQ broker. Tomcat will connect with the
               broker using a TCP connection on port 61616 - this is the
               default port for ActiveMQ
   -->
   <Resource name="jms/mqConnectionFactory"
                     auth="Container"
                     type="org.apache.activemq.ActiveMQConnectionFactory"
                     description="JMS Connection Factory"
               factory="org.apache.activemq.jndi.JNDIReferenceFactory"
               brokerURL="tcp://localhost:8161" />

   <!--
               This is a reference to the first Queue we defined
               earlier in the ActiveMQ admin console
   -->
   <Resource name="jms/testQueueOne"
                     auth="Container"
                     type="org.apache.activemq.command.ActiveMQQueue"
               factory="org.apache.activemq.jndi.JNDIReferenceFactory"
               physicalName="TestQueueOne"/>

   <!--
               This is a reference to …
0
I'm using currently the project
https://support.microsoft.com/de-de/help/246227/sample-secumgr-exe-overrides-security-manager-for-webbrowser-host
to check if a web portal, for example http://fontello.com/, works fine with EOT, WOFF and TTF to displaying different icons.

It looks like fonts with the Content-Type application/vnd.ms-fontobject or application/font-woff could not be used with IWebBrowser2.
In the webtraffic i could see, that the app could download the fonts, but after the download i received the error E_ABORT in the IHttpNegotiate::OnResponse handler.

The web pages works in IE, but when we disable font download in the security settings we get the same 'problem' with the IE.

I tried to enable the font download in function IInternetSecurityManager::ProcessUrlAction
(URLACTION_HTML_FONT_DOWNLOAD) without a positive result.

What i'm doing wrong?
0
Become an Android App Developer
LVL 11
Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Hi Experts,

I have written a program that reads the network interfaces to retrieve the MAC addresses for the network cards/interfaces in the computer.

The program sets up a http server to run locally on every machine, listening on a port for the API calls. For each request I'm starting a new thread, and in that thread I make a call to retrieve this information.

However, sometimes the program crashes entirely (not just the thread serving the request, but the entire program itself), without any logs or exceptions.

I'm not too sure what the cause is, but I suspect it may have to do with the NetworkInterface.GetAllNetworkInterfaces() call, as my logs stop there everytime it randomly crashes. Usually, even if a COMException occurs (due to some native DLL I'm using), the server would still be up and running, but in this case, the server closes entirely.

I have also tried this on my colleague's computer; it seems to be fine for him, but mine crashes randomly, perhaps once every 100 requests?

My question is, is there a known issue with the NetworkInterface.GetAllNetworkInterfaces() call? If not, is there a way for me to properly debug and find the cause of this issue?


Best Regards,
Zack
0
Hi experts, i want to change PHP to POWERBUILDER, any help please!
below the php script :

========encrypt===============
function mc_encrypt($data, $key)
{
/// make binary representasion of $key
$key = hex2bin($key);

/// check key length, must be 256 bit or 32 bytes
if (mb_strlen($key, "8bit") !== 32) {
throw new Exception("Needs a 256-bit key!"); }

// create initialization vector
$iv_size = openssl_cipher_iv_length("aes-256-cbc");
$iv = openssl_random_pseudo_bytes($iv_size);

/// encrypt
$encrypted = openssl_encrypt($data, "aes-256-cbc", $key, OPENSSL_RAW_DATA, $iv );

/// create signature, against padding oracle attacks
$signature = mb_substr(hash_hmac("sha256", $encrypted,  $key,   true),0,10,"8bit");

/// combine all, encode, and format
$encoded = chunk_split(base64_encode($signature.$iv.$encrypted));

return $encoded;
}

========decrypt===============
function mc_decrypt($str, $key)
{

/// make binary representation of $key
$key = hex2bin($key);

/// check key length, must be 256 bit or 32 bytes if (mb_strlen($key, "8bit") !== 32) {
throw new Exception("Needs a 256-bit key!"); }

/// calculate iv size
$iv_size = openssl_cipher_iv_length("aes-256-cbc");

/// breakdown parts
$decoded = base64_decode($str);
$signature = mb_substr($decoded,0,10,"8bit");
$iv = mb_substr($decoded,10,$iv_size,"8bit");
$encrypted = mb_substr($decoded,$iv_size+10,NULL,"8bit");

/// check signature, against padding oracle attack
0
What I need is to return a single partition ID by supplying a LABEL so I can use it in a bash script.

For instance partid = somecommand DATA-BU would store the partition is in a variable.  

What sayeth the group ?

Jay
 
I have seen ls -l /dev/disk/by-label will show me ALL LABELS > Partitions as shown in this picture, however I only need a single one and I need it in a variable form.

label-info.png
0
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

System Programming

40K

Solutions

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.