refreshing JPanels within a JFrame
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
5:43
Vote count: 0 I have 3 different panels in my JFrame and I am trying to update my 1st and 3rd panel in it each time I call a method which changes the text of the buttons within the panels. (Inside the 3rd panel (panel), there are 49 buttons in a 7 by 7 gridlayout) The first panel (panel1) only has 1...
Sort algorithm for struct data types
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
4:22
Vote count: 0 I try to write a console application which is able to sort a struct data type. I declared this kind of struct data type: typedef struct Rechteck *TPRechteck; typedef struct Rechteck { int x; int y; } TRechteck; It describes a rectangle. x and y are the two sides. I declared a function ...
Convert a timestamp as a string to struct tm
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
4:22
Vote count: 0 I've a string as: 1459791437 and I want to transform it in this format: YYYYMMDD,HH. I don't how to convert that string in a struct tm, I need that conversion to use the function: strftime. Here you can see what I want to do: void find_date(long timestamp, int *date, int *hour){ char b...
Sort dictionary by key (dates)
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
4:22
Vote count: 0 I'm new to Python and I'm trying to sort a dictionary by key. The keys are datetime objects. It works for 1 April, 2 April, 3 April, but it puts 4 april between 1 and 2. I've tried Ordereddict like described here. I'm just don't getting it. Any help apreciated... My code: for part in m...
Generating a CSR from an inf file using .NET
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
3:03
Vote count: 0 I'm using an INF file such as the one below to generate a CSR with "certreq.exe -new -q request.inf request.csr": [Version] Signature= "$Windows NT$" [NewRequest] Subject = "CN=subject" KeyLength = 2048 Exportable = TRUE MachineKeySet = TRUE SMIME = FALSE PrivateKeyArchive = FALSE User...
Get list of new and removed files from git
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
3:03
Vote count: 0 How do I get a list of files that have been removed or added? I'd like to compare my current branch against the version of the files in origin's master to see what's new. asked 1 min agoragerdl 1 Answer Vote count: 0 git diff ..origin/master --summary | grep "create" | awk '{ print $4 ...
Jadx v0.6.0 doesn't launch on Windows 7 (64bit)
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
3:03
Vote count: 0 I have downloaded Jadx v0.6.0 from Github: https://github.com/skylot/jadx/releases/download/v0.6.0/jadx-0.6.0.zip I have unpacked it and then tryied from cmd: jadx myApp.apk I have got the error: Error: Could not find or load main class JAVA_OPTS=-Xms256m -Xmx4096m How can I launch the...
Advice for building of interaction application
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
1:47
I need some advice for building a new interaction application that I would like to implement during my presentations. What should the program be able to? During a presentation (powerpoint slides, pdf slides, prezi, ...) there should be buttons on the screen fixed in the bottom co er (little buttons)...
Read Table: quotes in R
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
1:47
Vote count: 0 I have a txt file like: "cd_solicitud""nu_cuit""cd_provincia""tx_provincia" "9531""203128827"18"Salta" "9541""272477419"9"Entre Ríos" "9571""273065780"2"Buenos Aires" "6331""233703594"7"Córdoba" "6351""272442465"5"Chaco" I am trying to read it with: prov_nos<-read.table("C:/.../prov_de...
Inserting dynamic number of rows into table
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
1:47
Vote count: 0 Working in 2008 R2. Based on an unknown number of entries in one table, I need to duplicate entries in another table, with some fields of the latter table changed to match values in the former. For example Table 1 has: John Smith 1/15/2016 123 John Smith 3/10/2016 456 Sara Jones 2/20/2...
Does the command "aptitude upgrade" perform a full-upgrade or a safe-upgrade on Debian?
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
0:37
Vote count: 0 Both the commands aptitude full-upgrade and aptitude safe-upgrade are documented, including the dist-upgrade alias for full-upgrade. However, simply aptitude upgrade will also upgrade the system in some way...which does it default to? Also how would I find this for myself? man aptitude...
Public variable C#
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
0:37
Vote count: -1 I have an SQL query in my first windows form and I have declared the result as a variable. I need to be able call the variable on multiple other windows forms within the application. Can someone point me in the right direction on how to do this? asked 2 mins agouser3080562 Let's block...
Bootstrap "checkbox buttons" not working with forms
◷
تاریخ انتشار:
1395/1/17
|
ساعت:
0:37
Vote count: 0 Im using Laravel 5.2 with bootstrap. In the code you see that I use a "button" style for my checkboxes. This requires the data-toggle="button". But now, no form submit buttons work anymore. Any ideas? <div class="btn-group" data-toggle="button"> {!! Form::open(array('url' => '/particip...
Debugging resume after prelaunch in UWP
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
23:37
Vote count: 0 My UWP app seems to have trouble waking up when it was prelaunched. The problem is that it's stuck at the ExtendedSplashscreen when prelaunched. I'd like to debug this, but I haven't found any way in Visual Studio to simulate the startup when the app is prelaunched. I've found an optio...
Inspect template parameter pack in gdb
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
23:37
Vote count: 0 I'm trying to debug the following simple program: #include <iostream> template <class... Args> void printAll(Args&&... args) { using swallow = int[]; swallow{0, (std::cout << args, 0)... }; } int main() { printAll(1, "23", 4); } Compiled with gcc 4.9.2 using: g++ -std=c++11 -g -O0 foo....
Using a pipe inside a for loop. How do I preserve the value of the variable inside the for loop
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
23:37
Vote count: 0 I've been stuck for quite some time with the following code. It works but the variable loses the value that was set during the iterations. I have the following code checkIfLetterInsideWord(){ for (( i=1; i <= $word_length; i++)) do if [[ "$1:$i-1:1}" = ${letter} ]]; then exists=1 answe...
How to ignore a file locally?
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
22:15
Vote count: 0 So there is this configuration xml file, that for some unknown reason if I don't add a couple of extra lines of code my project wont work, however it works for everyone else. The thing is, I can't commit/push this file, but since the file is staged I can't pull or push either... One so...
Custom Cordova plugin iOS index.js dosent recognise my .js file
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
22:15
Vote count: 0 I have written a custom Cordova plugin that brings as a dependency "Media" plugin. When i run "cordova plugin add "myPlugin"" the plugin is installed to the sample project however when in my index.js i try to init my plugin it does not recognise it and if i try to create "Media" object...
Why do Office 2016 context menu strings in the registry sometime reference nonexistent DLLs?
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
22:15
Vote count: 0 Normally the context menu display string for a command verb is contained in the default value of HKCRclassShellverb. For example, the default value of HKCRWord.Document.12ShellOpen is usually '&Open', which is the menu string. But in some Win10 installations of Office 2016, the menu st...
Toggle filters and attributes in ng-click
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
21:15
Vote count: 0 When user click ng-click i need to remove filters and title attributes in a link . Again user click ng-click i need to add filters and title attributes in a link. HTMl : <div ng-app="myApp" ng-controller="myCtrl" ng-init="names=['Jani','Hege','Kai']"> <p ng-click="toggleFilter()">Toggl...