Hi all, In main program I read file using bufferedreader, and (try, catch), Now this section is repeated in my code , how can I call function to do that ? By passing filepath ..I try it but I don't get any line of file ... How can I get lines of files using function when I call it? ?

Member Avatar
Member Avatar
+0 forum 6

Hi ,all in this code ,i read filename in package filename using path ,,now i want to read the file B.java that also exist in package filename and relationship between them is inhretance.. "extends" keyword. in this (public class filename extends B ), but not write B.java in path ,i want to read any file after extends keyword in program filename. can anyone help me. i mean i want to read any file.java that come after extends keyword. public class CyclomaticComplexity{ public static void main(String[] args) { try { fileName = "C:\\NetBeansProjects\\filename\\src\\filename\\filename.java"); FileReader fr = new FileReader(fileName); BufferedReader br = …

Member Avatar
Member Avatar
+0 forum 18

Hi All, I'm trying to convert a .p12 file to a .pem using php (because, as I understand it, soap needs to take a .pem format certificate) Am I going about it the right way? $certificate = array(); $pkcs12 = file_get_contents('certificate.p12'); if (openssl_pkcs12_read($pkcs12, $certificate, 'pass')) { if (isset($certificate['pkey'])) { $pem = null; openssl_pkey_export($certificate['pkey'], $pem, 'pass'); } if (isset($certificate['cert'])) { $cert = null; openssl_x509_export($certificate['cert'], $cert); } if (isset($certificate['extracerts'][0])) { $extracert1 = null; openssl_x509_export($certificate['extracerts'][0], $extracert1); } if (isset($certificate['extracerts'][1])) { $extracert2 = null; openssl_x509_export($certificate['extracerts'][1], $extracert2); } $pem_file_contents = $cert . $pem . $extracert1 . $extracert2; file_put_contents("certificate.pem", $pem_file_contents); $options = array( 'local_cert'=>'/absolute/path/to/file/certificate.pem', 'passphrase'=>'pass', 'location'=>"...", …

Member Avatar
Member Avatar
+0 forum 5

Hi everyone. I have problem whit BSOD on Windows 7. I have a lot of dmp files in my minidump folder. After bluue screen view i have found that the main problem is this one: File name: ntoskrnl.exe Product name: Microsoft® Windows® Operating System File Description: NT Kernel & System File version: 6.1.7600.17273 (win7_gdr.130318-1532) Company: Microsoft Corporation Full path: C:\Windows\system32\ntoskrnl.exe I dont know how to fix this. If anyone knowes or have some advice please help. Thank you in advance

Member Avatar
Member Avatar
+0 forum 10

path = './file.txt' os.remove(path) import os `os.remove(path)` is equal to `os.unlink(path)`, so how can I delete the file if it just becomes unlinked? Also I haven't tried to yet, but does `'./file.txt'` work as is or do I must provide the full path? Or do I just need to use the `'file.txt'` if it the same folder? Or they both work the same like `os.remove(path)` and `os.unlink(path)`? And if `'./file.txt'` works then what about `'../file.txt'`?

Member Avatar
Member Avatar
+0 forum 7

Hello, I am working on this javascript application to be able to make change. I have my html and css files down good. Here is what I have. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Make Change</title> <link rel="stylesheet" href="styles.css"> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="make_change.js"></script> </head> <body> <section> <h1>Change Calculator</h1> <label>Enter amount of change due (0-99):</label> <input type="text" id="cents" /> <input type="button" value="Make Change" name="calculate" id="calculate" /><br><br> <label>Quarters:</label> <input type="text" id="quarters"><br> <label>Dimes:</label> <input type="text" id="dimes"><br> <label>Nickels:</label> <input type="text" id="nickels"><br> <label>Pennies:</label> <input type="text" id="pennies"><br> </section> </body> </html> css /* type selectors */ article, aside, figure, footer, header, nav, section { display: block; } …

Member Avatar
Member Avatar
+0 forum 2

Hi Friends, I have a graph in text file (origin, destin, link_id) such as 1 2 1 1 3 2 1 5 3 2 1 4 2 3 5 2 4 6 2 5 7 3 1 8 3 2 9 3 4 10 4 2 11 4 3 12 4 5 13 5 1 14 5 2 15 5 4 16 I declared, vector<int>pathway; multimap<int,vector<int>> allpathsmap; multimap<int,vector<int>>:: iterator itapm; typedef pair<int,vector<int>> pairapm; In addition I found all paths from a given Source to Destination. and I stored them in multimap 'allpathsmap' And I wrote the code to display them …

Member Avatar
Member Avatar
+0 forum 1

Hi there. I am making an application in VB.Net. In which i am scanning some system folders and on the execution time it gives me the error; E.g, access to the path "C:\any system file" is denied. Is there any code you people have that is edited in to the "form load" so when ever the application is executed, the denied error should be removed upon the form load? Thanks.. the code is as follows [code]Imports System Imports System.ComponentModel Imports System.Diagnostics Imports System.Drawing Imports System.IO Imports System.Runtime.CompilerServices Imports System.Security.Cryptography Imports System.Text Imports Microsoft.VisualBasic Imports Microsoft.VisualBasic.CompilerServices Imports System.Windows.Forms Imports System.Collections.ObjectModel Public …

Member Avatar
Member Avatar
+0 forum 12

Hi everyone, When i click on the ireport icon, it shows the splash screen but then nothing happens. I tried to override the default jdk path in ireport.conf file and changed it to the jdk path i am using but it didn't solve the problem. Then i uninstalled the software completely but still the problem persists. Restart didn't solve the problem too. Now what to do? plz guide me. I am using irepor 5.5.1 and jdk 8.0 with netbeans 8.0.

Member Avatar
+0 forum 0

So, if - like me - you find yourself in need of installing SQL Developer on Ubuntu 12.04 and have for some or other reason ended up downloading the rpm instead of the zip from the Oracle [site](http://http//www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html) or you already have an rpm of SQL Developer lying around follow these steps to install said software. Then, to the terminal: 1. First install alien: *sudo apt-get install alien* 2. Then, convert the rpm file to a deb file: *sudo alien --scripts -d sqldeveloper-3.2.10.09.57-1.noarch.rpm* 3. Then we run the deb file generated *sudo dpkg -i sqldeveloper-3.2.10.09.57-1.noarch.deb* 4. Create the following directory …

Member Avatar
Member Avatar
+1 forum 8

Hello, I need a litle help here. I am creating a program that finds a specific sentence in a word path and replaces it with a given value. Specific sentence: l="600" And it has to be changed to : l="300" This is not to dificult and works fine: Public Class Form1 Private Property sign As String Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim sign1 As String Dim sign2 As String sign1 = ("""600""") 'sign1 = ("""") sign2 = ("""300""") Dim source As String = "C:\temp\bodem.mpr" 'path from original file Dim destination As String = "C:\temp\bodem2.mpr" 'path …

Member Avatar
Member Avatar
+0 forum 6

Hi Everyone, I am here to start a defferent project, intresting for me of video clips comparison in C#. I would like to develop a destop application which can compare a video sample clip A with a destination video clip B. All I want to do is E.g if I have hundreds of video clips available in my D drive and I want to find a specific video. And I have for exapmle a 10 seconds video clip sample available. The application will compare the contents of Destination video file B with the source video sample file A. And if …

Member Avatar
Member Avatar
+0 forum 6

Hi Please I need your help with this script. I have an logfile.xml and I need to picks the file names of the path but not duplicate and writes them into a bat file, like copy %windiw&\system32\<filename> %1% Output example for my .bat file should look like copy %windiw&\system32\ dbghelp.dll %1% copy %windiw&\system32\ Riched32.dll %1% copy %windiw&\system32\ imm32.dll %1% This is my Logfile.xml <?xml version="1.0" encoding="UTF-8"?> <Company>Sysinternals - www.sysinternals.com</Company> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6de80000</BaseAddress> <Size>24576</Size> <Path>C:\Windows\system32\Riched32.dll</Path> <Version>6.1.7600.16385 (win7_rtm.090713-1255)</Version> <Company>Microsoft Corporation</Company> <Description>Wrapper Dll for Richedit 1.0</Description> </module> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6f3b0000</BaseAddress> <Size>65536</Size> <Path>C:\Windows\system32\napinsp.dll</Path> <Version>6.1.7600.16385 (win7_rtm.090713-1255)</Version> <Company>Microsoft Corporation</Company> <Description>E-mail Naming Shim Provider</Description> </module> The snippsat …

Member Avatar
Member Avatar
+0 forum 4

-->>Hello everyone, -->>I curently faced the problem with My project that the Main Form (Which is My startup form) in My project is NOT loaded in.. -->>project explorer window during the design time,when I lounch the project I get the following error: Microsoft Visual Basic Errors during loading. Refer to 'My Appliction Path\Forms\Main Interface.log' for details -->>When I refer to the .log file for details here is what I find in there: Line 37: Cannot load control mnTray_Icon; containing control not a valid container. Line 37: The file 'My Appliction Path'\Forms\Main Interface.frm could not be loaded. -->>And so I decided …

Member Avatar
+0 forum 0

So I am not getting the data from text1 to load properly(I would assume text2 is the same). If I step through it the variables load and then once it reaches Dim A() etc. it gives the "path's format is not supported" error. I have changed up how i'm getting data from the data source from initially getting the text files from OpenFileDialog, to hard coding, to what is below. I am pretty new to VB.net and I am sure it is something pretty basic but I dont know enough to know what that is. Also, I initially was going …

Member Avatar
Member Avatar
+0 forum 2

hello, i want to know whether i can display an image from the path i have selected? like, i have a path for example: c:\user\desktop\33.jpg, and i want to take only that jpg file and i have to display that image using label or something. If it is possible, i want to know how? Thanks in advance!

Member Avatar
Member Avatar
+0 forum 2

[Install-open-meetings](http://neanderslob.com/2013/09/27/how-to-install-open-meetings-on-ubuntu-12-04/) **Step 10 #7** how to find the path of the following: ImageMagick Path? FFMPEG Path? SoX Path? JOD Path? OpenOffice/LibreOffice Path for jodconverter? I try using the locate command (ex locate imagemagick) yet there is bunch of them, I cannot tell which path to use. ---------------- root@ubuntu:~# locate imagemagick /etc/bash_completion.d/imagemagick /usr/lib/mime/packages/imagemagick /usr/share/doc/imagemagick /usr/share/doc/imagemagick-common /usr/share/doc/imagemagick/NEWS.Debian.gz /usr/share/doc/imagemagick/README.Debian /usr/share/doc/imagemagick/README.txt.gz /usr/share/doc/imagemagick/TODO.Debian /usr/share/doc/imagemagick/changelog.Debian.gz /usr/share/doc/imagemagick/copyright /usr/share/doc/imagemagick-common/NEWS.Debian.gz /usr/share/doc/imagemagick-common/changelog.Debian.gz /usr/share/doc/imagemagick-common/copyright /usr/share/menu/imagemagick /var/cache/apt/archives/imagemagick-common_8%3a6.6.9.7-5ubuntu3.3_all.deb /var/cache/apt/archives/imagemagick_8%3a6.6.9.7-5ubuntu3.3_amd64.deb /var/lib/dpkg/info/imagemagick-common.conffiles /var/lib/dpkg/info/imagemagick-common.list /var/lib/dpkg/info/imagemagick-common.md5sums /var/lib/dpkg/info/imagemagick.list /var/lib/dpkg/info/imagemagick.md5sums /var/lib/dpkg/info/imagemagick.postinst /var/lib/dpkg/info/imagemagick.postrm root@ubuntu:~# locate FFMPEG /home/davy/.local/share/Trash/files/webapps/openmeetings/docs/FFMPEGVersionSwitch.html /usr/lib/red52/webapps/openmeetings/docs/FFMPEGVersionSwitch.html Can anyone help me?

Member Avatar
Member Avatar
+0 forum 1

Bute there's an error... Error: The given path's is not supported Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim FileToCopy As String Dim NewCopy As String Dim password As String = "Cyndy" Dim username As String = "Abbang" 'NewCopy = "192.168.xx.xx\c$\HS.exe" & username & ":'" & password 'FileToCopy = "c:\HS.exe" FileToCopy = "\\192.168.xx.xx\C$\BACKUP\HRIS.exe" NewCopy = "C:\HRIS.exe" & username & ":'" & password If System.IO.File.Exists(FileToCopy) = False Then System.IO.File.Copy(FileToCopy, NewCopy, False) MsgBox("File Uploaded Successfully") MsgBox("File Copied") Else MsgBox("cannot copy") End If Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub

Member Avatar
Member Avatar
+0 forum 3

I have it set up so that onclick (on a picure) calls the following function: function nxtimg(country){ document.getElementById("imgcont").src="images",country,"/",imgs[i],".jpg"; i++; } When I click on the image however, accorfing to firebug, the src of the image is; "images". It should have been changed to something like: "images/a/flag". Where did I mess up?

Member Avatar
Member Avatar
+0 forum 8

The End.