ICE

1

votes
1

answer
28

views

Qt 3D bar graph becomes unresponsive on large sizes

I am currently working on a Qt project which should simulate a bar graph with a dimension of 360x360. While the code i wrote works, it is sluggish and unresponsive when it is simulating a bar graph of size 360x360 This problem does not exist for smaller sized 3D bar graphs like 8x12 and etc. What ca...
FC Vanilla ICE
1

votes
0

answer
39

views

Unable to update a form using curl post

I am trying to use a script to interact with the a website however whenever i send my curl post request, nothing is returned. curl -X POST --proxy 1.1.1.1:9443 \ -H 'Content-Type: application/x-www-form-urlencoded' -d d='google.com' -d n='8.8.8.8' \ -d q='A' http://http://www.kloth.net/services/dig....
ice
1

votes
1

answer
74

views

How to access properties of uninitialized component in Angular?

I can't figure out how to access properties of a component in Angular using Ionic Framework Tutorial template. It seems to be uninitialized, because I tried to print it out to the console. Here is the code in app.component.ts: export class MyApp { @ViewChild(Nav) nav: Nav; pages: Array; constructor(...
Ice Drake
1

votes
1

answer
46

views

Empty resultset on BINARY comparison though java.sql.PreparedStatement.setBytes

I have Percona Mysql server and Java client with custom ORM. In DB I have table: CREATE TABLE `PlayerSecret` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `secret` binary(16) NOT NULL, `player_id` bigint(20) NOT NULL, PRIMARY KEY (`id`), UNI...
ice
1

votes
1

answer
24

views

Initial script for Elasticsearch

Is it possible to create an initial script for Elasticsearch? For example, I prepare one JSON file with index 20 users and 20 books. I want to load it by the single request. Example file: PUT eyes { 'settings' : { 'number_of_shards' : 1 }, 'mappings' : { '_doc' : { 'properties' : { 'name' : { 'ty...
Ice
1

votes
0

answer
16

views

Android - How can I change TTS speech rate in time?

I just started to program using TTS API. I have one question, and I will be very thankful for your help. I want to implement a feature that each time users click on 'slower' button while TTS engine is speaking, the speech rate will decrease immediately. So, I created a project for a test. In this pr...
Yen Ice
1

votes
1

answer
37

views

vanilla python - (plagiarism checker) How to detect the words that is identical in the original sentence?

I want to make a simple plagiarism checker by vanilla python. without using external libs in python So if the identical words comes successively more than 4 times, I want to print ouput(the successive identical words) I tried the below code. But it show every identical words even though the words do...
Hongssi Ice
1

votes
2

answer
536

views

XNA Multi-Thread Jitters

brand new question. Just implemented multi-threading into my XNA game as it was unable to keep up with using 1 processor. MT is all implemented fine and everything, however the player seems to jitter all over the spot every now and then. I originally thought it was a loss of data between the update...
Ice Phoenix
1

votes
2

answer
940

views

SQL Server 2008 and the commandline tool bcp: are there different versions around?

I got the problem having written a little procedure to import some flatfiles in a table using openrowset...bcp... which didn't work at customers site. A short check with bcp /? shows a different behaviour e.g. the switch -T was not trusted connection but rather something with Images. Are there diffe...
Ice
1

votes
1

answer
290

views

Copying files in use with Ruby

I need to copy some files that are in use by windows with a ruby script. The OS will either be Windows XP or Windows 7 both 32-bit. Can anyone point me to some information on using Volume Shadow copy with ruby? Is there a gem for this? I would prefer a solution that does not require administrator pr...
Cryptographic_ICE
1

votes
1

answer
981

views

JQuery Quicksand: Link directly to pre-filtered Quicksand from another page

For example: If I have a page called fruit.php with Quicksand and the filters are 'All', 'Apple', and 'Bananas' and it is set to 'All' by default, can I link to fruit.php from some other page and have quicksand pre-filtered to 'Apple' or 'Banana' instead?
Ark-of-Ice
1

votes
1

answer
540

views

How to quickly process images uploaded by user?

I was thinking of using imagemagick to process images uploaded by a user in various ways (creating new images that are scaled, have drop shadows, etc.) but I've been worried about the speed. I don't want the user staring at a loading gif forever. So I started looking around to see how other sites do...
Ark-of-Ice
1

votes
1

answer
4.4k

views

Asp.net ajax pagemethods not working

I have a project that originally did not use ajax. Now I want to make the page ajax enabled. What I did already is Install the ajaxToolkit and replace the web.config content with another one from an ajax enabled web site. I added Script Manager: my method in the .cs file looks like this [WebMethod]...
ice
1

votes
2

answer
862

views

in SpringSource Tool Suite, where can I edit the themes?

I've been asked to theme a site for a team (just a few hours they said), but they're using Grails with SpringSource tool Suite. I'm not familiar with either. When I look at the 'proper' source, the theme source files don't exist, yet they get served. If I search for the files in the IDE, I get som...
Vibrant Ice
1

votes
1

answer
1.6k

views

background removal using emgucv

How to remove background from a live video feed using emgucv. I need some thing like this video. The only thing I want is a moving object or a human. i tried motion detection but didn't achieve the performance level.
Micro Ice
1

votes
3

answer
1.5k

views

Emgu Cv Motion Detection

I'm working on hand detection using EmguCv. I have successfully detected the skin color object in live video feed. With in that skin detected object I want to track the moving hand only. Please someone tell me how to achieve this without degrading the performance. A code or step by step procedure wi...
Micro Ice
1

votes
3

answer
2.6k

views

GCM Demo on Android Device

I'm following the Android GCM Demo tutorial (http://developer.android.com/google/gcm/demo.html) and I'm attempting to get the application to work on my Android phone however whenever I run the application on the phone I receive the message: Trying (attempt 1/5) to register device on Demo Server Then...
Ice Phoenix
1

votes
1

answer
715

views

Center datagrid combobox text

How can I center the text of ComboBox columns in a DataGridView? The DataGrid is dynamically updated with columns of different types: foreach (Fields field in fields) { if (field.group.Count > 1) { DataGridComboBoxColumn column = new DataGridComboBoxColumn(); column.Header = field.name; column.Items...
ice 13
1

votes
1

answer
583

views

Bash Read Escaped Characters and Normal Characters

I want to read in bash when any key is pressed, be it arrow key, number, letter, or punctuation, without pressing enter. This is the closest that I have come up with, besides that when an escaped key is pressed, it spills over into the next input. Also, escaped keys will read but not echo. #!/bin/ba...
Blue Ice
1

votes
1

answer
825

views

C termios and printf issue

I'm using Lubuntu with LXterminal. I have (somewhat) unashamedly copied the basis for this code from a stack overflow answer that gives details on c non-blocking keyboard input. This is the first part: #include #include #include #include #include #include using namespace std; struct termios or...
Blue Ice
1

votes
1

answer
159

views

How can I switch a PHP variable in Sublime Text 2 under Vintage mode?

I'd like press 'yiw' to copy inner word. It's currently right copy a PHP variable include prefix '$' in my vim configuration. But it don't include prefix '$' in my sublime text 2 vintage mode. How can i do to let it work currently? And I also don't know how to set this in vim.
ice.niler
1

votes
1

answer
230

views

Window HTTP IO Completion port

I was going through the IO Completion port documentation of Windows programming with relation to the Windows HTTP Server API. So in the HTTP Server API, we have a queue which is an abstraction over the responses/requests. We have the handle to the queue to get the relevant information. If i am to as...
Desert Ice
1

votes
1

answer
178

views

How to find out the value of 1 iteration in microblaze

I am trying to find out a way to increase the computation time of a function to 1 second without using the sleep function in xilinx microblaze, using the xilkernel. Hence, may i know how many iterations do i need to do in a simple for loop to increase the computation time to 1 second?
Ice
1

votes
1

answer
204

views

Different data in urllib2 than in Safari's Web Inspector

I looked here and here for information on my issue, but with no luck. I made some python code that is intended to grab a webpage's source, as in Safari's Web Inspector. However, I have been getting different code from my application and Safari's Web Inspector. Here is my code so far: #!/usr/bin/pyth...
Blue Ice
1

votes
1

answer
170

views

How to find anybody's big boss

i have a problem on sql-server 2012 in T-SQL. query to find anybody's biggest boss? Example: Alex(1) -------------------- Jhon(2) Kevin(3) ------------------------------ Mike(4) Amanda(5) Tom(6) Jery(7) declare @t table(EMPLOYEE_ID Int, MANAGER_ID Int, EMPLOYEE_NAME varchar(200)) insert @t...
Ice
1

votes
1

answer
717

views

Eloquent column alias

I have a web application that is expecting a column name of “sales_order_number” however the actual column name is uppercase “SALES_ORDER_NUMBER”. I will not be able to change the database so if I can’t do some kind of aliasing I will need to rewrite my webapp to use the new names which w...
Cryptographic_ICE
1

votes
1

answer
543

views

Listing Windows phone devices connected to computer

I would like to ask if there is a way to recognize all Windows Phone 8 devices connected to my computer? I have Windows Phone SDK installed and there are several services running on my computer but I don't know if I get information for connected devices running on Windows Phone? Thank you in advic...
ivan.ice
1

votes
1

answer
2k

views

Deploying a Java Project to a JBoss Server

Just so that this doesn't end up marked as a duplicate right off the bat, I did look through the site and find answers to similar questions, but not mine. Although if it turns out there's no answer/this is still a duplicate, I understand. At my new job, I just got an assignment where I'm using items...
Ice-9
1

votes
2

answer
412

views

Why do I keep getting WhereChain Query due to scope?

So i'm trying to create a scope that takes two variables, (current_user, other_user) and seperate the messages between the two based off of sender_id and receiver_id (my foreign_keys). I've used the following before on a project, and it worked well: scope :between, -> (me, other) { Message.where{((:...
Andrew Ice
1

votes
1

answer
397

views

Pyinsane example fails with “no module named src.abstract”

I am using the pyinsane module, and after running sudo pip install pyinsane, I believed that pyinsane was up and running. After testing this example with: python /home/administrator/Documents/git-repositories/ramrod/code/main.py /home/administrator/Documents/git-repositories/ramrod/code/test.jpeg I...
Blue Ice
1

votes
1

answer
676

views

automate iseries navigator generate sql command

I occasionally use iseries navigators 'generate sql' to convert out DDS objects into sql code. Is there a way to automate this? or perhaps a green screen equivalent command? what I'm really after is a way to translate a keyed logical file into a set of sql indexes.
Cryptographic_ICE
1

votes
1

answer
2.4k

views

PHP curl_setopt() error invalid characters

I have some code of a website in which cURL is used (not quite 'mine'..part of an open source project) and after loading up the site on localhost of my VM for the first time in months because I want to help with a recent issue that has arisen, which is unrelated to cURL, I had fixed one local proble...
The Ice Mage
1

votes
2

answer
140

views

State Design Pattern: Error Handling

I was just playing around with the 'state design pattern' and had a couple of questions on how exactly errors are handled in a state machine. Let us take the case below class state_machine { private: state state1; state state2; public: } class state { private: state_machine* m_state_machine; /*...
Desert Ice
1

votes
1

answer
888

views

How to pass values to phaser (Dart port) State.init() function?

I have the beginnings of my game code structured like this main() { new Foo(); } class Foo { GameMap map; Foo() { map = new GameMap(32, 32); //GameMap is a class of my own ... // do some map-related initialisation Game game = new Game(800, 600, AUTO, 'canvasDiv'); State state, state2; state = new F...
The Ice Mage
1

votes
2

answer
181

views

Purpose of cloning in Java

I was going through the 'special' features of Java, and started reading up on Cloning. So currently what I understand is Cloning can be used to get a identical copy of an object. To do this you implement the Cloneable interface and override the clone method of Object(Which is really weird IMO) My qu...
Desert Ice
1

votes
1

answer
2.3k

views

How to make an in-game button (with text) in Phaser?

I have made a PNG image which will be my button background. In the preload() of my relevant state I load that image. I want a way to have this image placed in the world and be able to set text onto it (and also be clickable but I guess that's a bit unimportant here because I know how to set up event...
The Ice Mage
1

votes
1

answer
214

views

ExtJS DateField format Confuse

I use Ext.form.DateField with specified format is 'd/m/Y', like this: { xtype : 'datefield', fieldLabel : 'Value Date *', name : 'valueDate', allowBlank : false, blankText : 'Please enter a Start Date', msgTarget : 'under', format : 'd/m/Y', emptyText : 'dd/mm/yyyy'} I want this component to complet...
ICE
1

votes
1

answer
3.2k

views

Install Perl Module Nginx

I am following this tutorial and got an error with perl_modules: [email protected]:~# service nginx restart Restarting nginx: nginx: [emerg] unknown directive 'perl_modules' in /etc/nginx/sites-enabled/default:1 nginx: configuration file /etc/nginx/nginx.conf test failed [email protected]:~# How do I instal...
blue ice
1

votes
1

answer
65

views

Duplicate Line Filter Not Working

I have this code which I have reviewed many times. It seems to filter a lot, but some duplicates get through? import java.io.*; import java.util.*; class ipstoblockfilter { public static void main(String[] args) throws FileNotFoundException { File file = new File('E:\\alp\\ipstoblock.txt'); try { Sc...
blue ice
1

votes
3

answer
353

views

How to print a combination of words one from first array the second from second array and third from third array?

I want this code to output the following it has three Array List Entries separated by commas as its delimiter ('slow,steady'),('blue, white,green')('whale, shark ');.It has to output the following slow blue whale slow white whale slow white shark steady blue whale steady white shark and so for...
Ice_Queen

View additional