We recently purchased a DigiCert EV code signing certificate. We are able to sign .exe files using signtool.exe. However, every time we sign a file, it prompts for the SafeNet eToken password. How can we automate this process, without user intervention, by storing/caching the password somewhere?
We have a Spring 3 web application on Tomcat 6 that uses several scheduled services via @Scheduled (mainly for jobs that run every night). Now it appears that sometimes (rarely, perhaps once in two months or so) the scheduler thread stops working, so none of the jobs will be executed in the following night. There is no exception or logging entry in our log files. Has anybody a clue why this is happening? Or how to get more information about this problem? Is there a way to detect this situation within the application and to restart the scheduler? Currently we are solving this by having also a l
I am making an Speaking caller name application which pause the ringtone before speaking the caller name using TextToSpeech. I am detecting the current Volume using int musicVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); Mostly this returns 0 but sometimes 15 the correct value. The phone is in normal mode and the volume of phone is full. I need this value to correctly speak the caller name but this unpredictable behaviour is making me crazy. What wrong am i doing? Isn't this the correct way to detect ringtone volume?
I'm new to Oracle, and I have installed Oracle Database 11g. When I open some connection on Oracle SQL Developer, I get a dialog where I've to enter the username and the password as the following : The problem is that I don't knwo what is the username and the password, in the installation I choosed orcl as the Username and orcl as the password but when I enter them I get the error message : How can I solve this problem ? I've another question : what is this page https://localhost:1158/em and why I get Page Web Inaccessible when I acces to it. EDIT 1 : This is the content of the listener.ora fi
My DataGridView displays information that is entered on another system. As the user insert, update or delete any information, the DataGridView should be updated right now. I thought about using a recursive method or thread background, but it did not help. My code is: private void Andon_Load(object sender, EventArgs e) { LoadGrid(); } private void LoadGrid() { DataTableWorkCall cdtwc = new DataTableWorkCall(); DataTable dtPBList = new DataTable(); dtPBList = cdtwc.CreatePendingWorkCall(); DataTableWorkCall.GetDataTableNew = dtPBList; if (DataTableWorkCall.GetDataTableNew != DataTableWorkCall.Ge
I have a very simple WMI test-script that I am running locally on a server to diagnose a problem I'm having getting WMI some data. Essentially, all WMI queries I run on this machine (locally) fail with an error code 0x80041017. Option Explicit Dim WmiQuery WmiQuery = "SELECT * FROM Win32_Processor" Dim objSWbemLocator Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") Dim objWMIService Set objWMIService = objSWbemLocator.ConnectServer("localhost", "root\cimv2") Dim results Set results = objWMIService.ExecQuery (WmiQuery) Dim row For Each row in results Next I'm not even trying to
In a case statement, the value of s is increased by the power of 2: input [127:0] s; output [127:0] y; case (s) 128'b1 : y = a1; 128'b2 : y = a2; // ... When it goes to 2^64, the number is so big and it will be represented automatically by scientific notation, for example: 128'b1.84467e19 : y = a64; This will give me a syntax error. Is there a way to avoid this? I don't want to define it as real since I want to synthesise this code.
I was wondering if anyone could help - I am writing a custom Json serializer, extending from JsonSerializer, and I want to wrap any exceptions that could be thrown in my own custom exception, extended from IOException. However, whenever I run any unit tests (using junit) to confirm that the exception is thrown it is failing, saying that - Expected: (exception with message a string containing "Unable to serialize!" and an instance of com.company.profile.serializer.MySerializerException) got: <com.fasterxml.jackson.databind.JsonMappingException: Unexpected IOException (of type com.company.profil
For a new housing project, a complete area will be developed on a blank piece of land. We would like to create a nice interactive chart with all the different sub housing projects. Currently we have a static map available, but want to turn this into an interactive map. Currently we have found zeemaps.com to add pointers to the map, highlight new building area's and add additional information. One thing is lagging, is the ability to create roads/parks in the map. Are there any tools out there available where I can 'draw' the new to be developed area into a google-like map.
Earlier I had a question about killing children subprocesses in Python 3. The thread is here > Python close children subprocess and the working code is as follows: def open_storage(): global my_process my_process = subprocess.Popen("waffles.exe") def kill_children(): my_process.kill() Now I have another question. How do I limit the maxiumum number of allowed subprocesses spawned? I know with Linux you can simply use ulimit, as described in a thread found here > Python: ulimit and nice for subprocess.call / subprocess.Popen? Where the linux method is: import subprocess subprocess.Popen('ulimit
I have a php file with the proper information, and I cannot figure out why I cannot make an ODBC connection to my SQL Database? I have two files and am trying to create a simple webpage that is connected to my database. First File (odbc_vertices.php): <?php //creates an odbc connection and stores it in $odbc variable $odbc = odbc_connect ('VERTICES', 'correctusername','correctpassword') or die ( "Could Not Connect to ODBC Database!" ); ?> Second File (phptest.php): <html> <head> <title></title> </head> <body> <?php include 'odbc_vertices.php'; ?> <select name='vndr'> <option selected> <?php $q
I'm trying to use Copy-Item to copy a file to an existing folder and getting the error "Could not find part of path". I've Googled this problem for ages, but can't seem to find an answer. I altered the code to check that I could copy to each folder in the path and then hit the problem when .'s were used in the file name. Also I cannot change the folder name because the folder name is created by a (crappy) Oracle related installer. Essentially the code is like this (the code is run in the context of the source directory)... $Filename = "new.txt" $Destination = "C:\a\b\c\d\e.f\g\h" Copy-Item -Pa
I am having an Drop down in Struts. How to get selected value from <html:options> tag in JavaScript? <html:select property="temp_Id" > <html:options collection="listmap" property="key"/> </html:select>
I have the following assembly code .export __ls__11NSDOM_EncapFf .text __ls__11NSDOM_EncapFf: /* first load the symbolic constant*/ movq _IEEE_FP@GOTPCREL(%rip), %r8 /*%r8 is a scratch register*/ movq (%r8), %r9 /* %r9 and %r11 are scratch registers*/ movl (%r9), %r11d /* second, see if it is zero and branch accordingly */ test %r11d, %r11d /* zero call TNS procedure */ /* non-zero call IEEE procedure */ je ____ls__11NSDOM_EncapFf_tns/* constant equals 0 */ jmp ____ls__11NSDOM_EncapFf_ieee/* constant not equal to 0 */ ret I compile the .s file to .o file(compilation is fine) , but when I link
I have a socket handler class which is used to communicate to a client with a specific IP and port with the help of several socket functions. The first time I am using writetosocket(), it's working perfectly. But when I restart the client (with ip and port) and try to use writetosocket() it returns broken pipe error with error code 32 after successful execution of the socket_write function. I am getting this error when I am writing data on socket. I read some solutions and tried the most common solution which is to use socket_shutdown and socket_close to terminate the socket connection properl
I am using Bit bucket as my hosting site for the distributed version control systems (DVCS) Git. While Cloning the project and bringing into my eclipse it is giving me the error: Git repository clone failed. Connection reset While in wizard it does import till 50% Of my project and as soon as it reach 50 it gives me error. I am doing it directly from Eclipse[import->Projects from Git-> entering my URL] without "git command line". I even did window-->Preferences->Team->Git->Configurations->User Settings. When I entered my name & ID but this also isn't helping. I am unable to Clone in my project
I have list with blanks and I cannot get the ever-so-popular dynamically named range formula to work: =OFFSET(Tasks!$G$2,0,0,MATCH("*",Tasks!$G$2:$G$22,-1),1) The data validation list I use it for is still showing all the blanks! Please help and advise! Many thanks
How to detect a mobile device using jQuery I found this and I was wondered what the / sign meant in the if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { // some code.. } code.
I can use blueZ hciconfig to find the usb bluetooth device 'hci0'. But I can't enable the bluetooth on Android 4.2.2. It seems android use a new bluetooth stack since version 4.2 . So it doesn't rely on the BlueZ statck now. This is my BoardConfig: BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_BCM := true And I enabled the HCI USB drvier in the kernel. Does any one have the idea about how to support usb bluetooth dongle on Android 4.2.2 ? The issue stuck me two weeks. And I can't get more information from the internet. Thanks very much !
I've created something of a simplistic renderer on my own using OpenGL ES 2.0. Essentially, it's just a class for rendering quads according to a given sprite texture. To elaborate, it's really just a single object that accepts objects that represent quads. Each quad object maintains a a world transform and object transform matrix and furnishes methods for transforming them over a given number of frames and also specifies texture offsets into the sprite. This quad class also maintains a list of transform operations to execute on its matrices. The renderer class then reads all of these propertie
In one of my activities, my EditText views used to look like this But now they looks like this I need help changing it back: from the rectangle to the underscore. BACKGROUND Because I needed to create a custom ActionBar, I had to change the theme of the activity in question, YesterdayActivity, using the following Style: <style name="CustomWindowTitleBackground"> <item name="android:background">#323331</item> </style> <style name="CustomTheme" parent="android:Theme"> <item name="android:windowTitleSize">40dip</item> <item name="android:windowTitleBackgroundStyle">@style/CustomWindowTitleBackgro
There's a great deal of information I can find on hashing strings for obfuscation or lookup tables, where collision avoidance is a primary concern. I'm trying to put together a hashing function for the purpose of load balancing, where I want to fit an unknown set of strings into an arbitrarily small number of buckets with a relatively even distribution. Collisions are expected (desired, even). My immediate use case is load distribution in an application, where I want each instance of the application to fire at a different time of the half-hour, without needing any state information about other
Note: I've read similar threads, but none quite my issue - I can right click on it fine, it just then disappears. I find 'Inspect Element' an invaluable tool in Chrome, however I'm having trouble using it for sub-menu for an element on my nav bar, which pops up below on hover of its parent item. The popup (or down) isn't quite styled how I'd like, so I right-click > inspect element to see what's coming from where exactly, and get a better idea of how to achieve my desired effect. However, as soon as I move my mouse away from the menu, it's gone; thus I can't select different elements in the in
This is my current style file, as I want to have a dark theme with a light ActionBar. <style name="AppBaseTheme" parent="@android:Theme.Holo"> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"> <item name="android:background">#FF00FF</item> </style> That works correctly, as my ActionBar as a pink background (not shared in screenshot because it would be too confusing). But, unfortunately, despite the fact that I used: Widget.Holo.Light.ActionBar, my ActionBar is still dark themed: How would it be
I'm developping a JS-app that needs to work both on the client side and the server side (in Javascript on a browser and in Node.js), and I would like to be able to reuse the parts of the code that are used for both sides. I have found out that window was a variable only accessible on Browsers, and global in node, so I can detect in which environment the code is executing (assuming that no script declares the window variable) I have two problems. How should I detect in which browser the code is running. For example, is this code OK. (This code is inline, meaning that it is surrounded by some gl
I just recently installed Visual Studio 2012, everything's working good with 2010 with my Crystal report but when I migrated the code to 2012 I can't display anything. Can you pls check if there is something I'm missing with this code: protected void Page_Load(object sender, EventArgs e) { SqlConnection cnn; string connectionString = null; string sql = null; connectionString = "data source=server; initial catalog=DBO;user id=sa; password= passw0rd"; cnn = new SqlConnection(connectionString); cnn.Open(); sql = "select BadgeNo as DataColumn1,Name as DataColumn2, Section as DataColumn3 from Safet
I am able to execute some SSIS packages from my local computer however when I am trying to execute the same through windows service on Windows server R2 it fails. Windows Service Code: using DTS = Microsoft.SqlServer.Dts.Runtime; DTS.Package pkg; DTS.Application app; DTS.DTSExecResult pkgResults; app = new DTS.Application(); pkg = app.LoadPackage(pkgLocation, null); pkgResults = pkg.Execute(); I am installing the service on the server and when started it fails on app = new DTS.Application(); On the server I have already SSIS installed and I am also able to execute the Package from command prom
I'm uncertain as to how to get the number of rows affected from a SQL execution. I do like this: boolean isResultSet = statement.execute(arbitrarySQLCommand); and I can get the number of rows affected from the getUpdateCount() method. That is all fine. The problem I have is when update count is zero. This can either mean: It was a DML statement but it didn't affect any rows. Zero rows affected is a valid response. I just means that some condition was not met. It was a non-DML statement (DDL statement most likely) .. which by definition does not change rows so therefore update count is always z
I've read that when you buy a ticket to entry to the Taj Majal you get a "INR 500 for a one-time composite toll levied by Agra Development Authority for Taj Mahal, Agra Fort, Itimadi-ud-daula, Akbar’s Tomb, Sikandara and Fatehpur Sikri". How does it work? It means that if I pay 750 INR to get into the Taj Majal I don't have to pay to enter in the other places? And if that's true, I have to go the same day or the entrance is valid for the next day?