• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:14
CEST 12:14
KST 19:14
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun7[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists19[ASL21] Ro16 Preview Pt1: Fresh Flow9
Community News
2026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid25
StarCraft 2
General
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Team Liquid Map Contest #22 - The Finalists MaNa leaves Team Liquid Maestros of the Game 2 announced
Tourneys
GSL Code S Season 1 (2026) FSL Season 10 Individual Championship WardiTV Spring Cup 2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
ASL21 General Discussion JaeDong's ASL S21 Ro16 Post-Review BW General Discussion Leta's ASL S21 Ro.16 review [ASL21] Ro8 Preview Pt1: Inheritors
Tourneys
[ASL21] Ro8 Day 2 [BSL22] RO16 Group Stage - 02 - 10 May [Megathread] Daily Proleagues [ASL21] Ro8 Day 1
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Daigo vs Menard Best of 10 Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV Diablo IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
Russo-Ukrainian War Thread European Politico-economics QA Mega-thread US Politics Mega-thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1385 users

The Big Programming Thread - Page 647

Forum Index > General Forum
Post a Reply
Prev 1 645 646 647 648 649 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2015-07-05 09:00:52
July 05 2015 08:29 GMT
#12921
--- Nuked ---
catplanetcatplanet
Profile Blog Joined March 2012
3836 Posts
July 05 2015 13:55 GMT
#12922
On July 05 2015 17:29 Nesserev wrote:
Show nested quote +
On July 05 2015 16:50 catplanetcatplanet wrote:
On July 05 2015 07:43 Cyx. wrote:
On July 05 2015 00:04 catplanetcatplanet wrote:
first of all now that i'm back on my os x laptop i'm sort of corralled into using xcode. for the course i just stuck to beloved vim and i've never really had to use a full ide so maybe that's part of my confusion. a bigger deal is that os x compatibility seems to be an issue for some things

I've never heard of anyone who really liked xcode. Macs were standard issue at work last summer and everyone used emacs or vim, you can use command line g++ to build simple things and make to build complicated things, if you try hard enough it's still a Unix system at heart with all the good tools :D

On July 05 2015 00:04 catplanetcatplanet wrote:
also i don't really get how to learn to download and learn to use libraries and APIs, seeing as my course just involved basic command line tools with the standard library. well say i want to learn a bit about opengl now. luckily the framework is in xcode, so i don't have to download anything. but os x just got 4.1 compatibility with mavericks, and all the tutorials i can find online either assume building on knowledge of older versions or are filled with lots of confuso computo lingo that i am unfortunately not yet familiar with. on the other hand java made it much easier to learn graphics as it had some graphics functionality in the standard API

http://learnopengl.com/ is a modern OpenGL resource which is nice, and geared towards beginners, I haven't checked it out in a few months but I think I remember pretty good intro lessons where they describe the process of setting up your build environment.

edit: those tutorials use Visual Studio which may not be great for you, but they also describe using CMake to set up your VS projects so you should be able to pretty easily generate a make project instead.

On July 05 2015 00:04 catplanetcatplanet wrote:
ALSO quick one, good IDE for python or java should I decide to take it easy?

thanks in advance, hope i described my confusion clearly

Most of the people I work with who write Python frequently either use https://www.jetbrains.com/pycharm/ or emacs/vim :D

thanks so much for the answers and the opengl site! i've successfully built the library and am on my way to finally learning some opengl

one more question, since I had to use cmake to generate files for the IDE (specifically xcode) is there a different way of getting this to work with a command line editor? and what exactly is a make project?

Both make and cmake are tools that allow a developer to write a 'script' (makefile) that can be used to build/manage projects (and other functionality) in an easy portable way.

For example, when a project starts to grow larger, compiling and linking all those files manually from the commandline would become unmanageable. Instead, you could write a simple makefile that acts as a recipe, in which you state which files are involved, what settings you want to use, etc. And, then you simply use 'make build' to build your project, instead of doing everything manually.

It also allows you to implement your own 'commands', for example:
- make build -> builds the project
- make clean -> removes all object files and executables
- make test -> builds the tests of the project
...

Here's an old example of a makefile that I used:

#COMPILER/LINKER
CC=g++
CFLAGS=-c -O3
LDFLAGS=

#SOURCES
SOURCES= ./include/sharedlib/EasyImage/EasyImage.cc \
./include/sharedlib/iniConfiguration/ini_configuration.cc \
./include/sharedlib/lparser/lparser.cc \
./include/sharedlib/others/conversions.cc \
./include/sharedlib/vector/vector.cc \
...


#OBJECTS
OBJECTS=$(SOURCES:.cc=.o)

#EXECUTABLE
EXECUTABLE=engine

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cc.o:
$(CC) $(CFLAGS) $< -o $@

#CLEAN: OBJECTS
clean:
rm -rf $(OBJECTS)

cleanall:
rm -rf $(OBJECTS) $(EXECUTABLE)


Now, if someone wants to build your project or do other stuff, he/she just has to use 'make', 'make clean', ...

cmake is a more modern version and portable version of make, and has some built-in features:
- automatically detects which files have to be recompiled, and which don't
- detection for whether or not a certain library is installed or available
- cleaner syntax, with recursive cmake files that allow for easy plug-and-use
- etc.

So, I would recommend taking a look at cmake, and doing the tutorial on their website.

thank you very much—this helped me better understand what i was doing when i was building the libraries.

thanks to you guys I have managed to build, compile and link libraries for the first time! it took me forever to figure out the process for xcode but now the example opengl code runs and I can finally code.
I think it's finally time to admit it might not be the year of Pet
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2015-07-05 22:21:06
July 05 2015 22:20 GMT
#12923
On July 03 2015 11:25 Blisse wrote:
Show nested quote +
On July 03 2015 00:33 netherh wrote:
On July 02 2015 18:13 Blisse wrote:
Not really. Foreach loops are backed by Iterators anyways.

The language is Java if that helps.


What does your profiler say about what's taking up all the time?


the nested for loops costs about as much as the contains operations

turns out it was probably the algorithm efficiency, nested for loops are bad. we figured out a more effective solution, i'll share after the deadline passes if y'all are interested because it's actually pretty neat

n^2 is a bitch, especially if you were doing O(edge) algo not O(node). Glad to hear you sorted it out.
Who after all is today speaking about the destruction of the Armenians?
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2015-07-06 18:38:03
July 06 2015 18:13 GMT
#12924
+ Show Spoiler [OOP] +
[image loading]


i am working on a little program for capturing and editing image sequences via xlib (GetImage), and outputting to memeable format. this is taken at 40ms / frame from vlc, saved as gif.
movie is conspirators of pleasure, that guy is actually having the time of his life.

hopefully will finish it within the week (only a sideproject), and will post source.
conspired against by a confederacy of dunces.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
July 06 2015 18:26 GMT
#12925
--- Nuked ---
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2015-07-06 18:50:23
July 06 2015 18:35 GMT
#12926
i was struggling to find a fitting title that combined with the gif expresses my anguish.
OOP was more fitting than bad interface. the most fitting might be: 'bad OOP interface, unexpected use case'.

+ Show Spoiler [#ifdef _MANAGED] +
[image loading]

bahaha, same movie.
conspired against by a confederacy of dunces.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
July 06 2015 19:27 GMT
#12927
On July 05 2015 22:55 catplanetcatplanet wrote:
Show nested quote +
On July 05 2015 17:29 Nesserev wrote:
On July 05 2015 16:50 catplanetcatplanet wrote:
On July 05 2015 07:43 Cyx. wrote:
On July 05 2015 00:04 catplanetcatplanet wrote:
first of all now that i'm back on my os x laptop i'm sort of corralled into using xcode. for the course i just stuck to beloved vim and i've never really had to use a full ide so maybe that's part of my confusion. a bigger deal is that os x compatibility seems to be an issue for some things

I've never heard of anyone who really liked xcode. Macs were standard issue at work last summer and everyone used emacs or vim, you can use command line g++ to build simple things and make to build complicated things, if you try hard enough it's still a Unix system at heart with all the good tools :D

On July 05 2015 00:04 catplanetcatplanet wrote:
also i don't really get how to learn to download and learn to use libraries and APIs, seeing as my course just involved basic command line tools with the standard library. well say i want to learn a bit about opengl now. luckily the framework is in xcode, so i don't have to download anything. but os x just got 4.1 compatibility with mavericks, and all the tutorials i can find online either assume building on knowledge of older versions or are filled with lots of confuso computo lingo that i am unfortunately not yet familiar with. on the other hand java made it much easier to learn graphics as it had some graphics functionality in the standard API

http://learnopengl.com/ is a modern OpenGL resource which is nice, and geared towards beginners, I haven't checked it out in a few months but I think I remember pretty good intro lessons where they describe the process of setting up your build environment.

edit: those tutorials use Visual Studio which may not be great for you, but they also describe using CMake to set up your VS projects so you should be able to pretty easily generate a make project instead.

On July 05 2015 00:04 catplanetcatplanet wrote:
ALSO quick one, good IDE for python or java should I decide to take it easy?

thanks in advance, hope i described my confusion clearly

Most of the people I work with who write Python frequently either use https://www.jetbrains.com/pycharm/ or emacs/vim :D

thanks so much for the answers and the opengl site! i've successfully built the library and am on my way to finally learning some opengl

one more question, since I had to use cmake to generate files for the IDE (specifically xcode) is there a different way of getting this to work with a command line editor? and what exactly is a make project?

Both make and cmake are tools that allow a developer to write a 'script' (makefile) that can be used to build/manage projects (and other functionality) in an easy portable way.

For example, when a project starts to grow larger, compiling and linking all those files manually from the commandline would become unmanageable. Instead, you could write a simple makefile that acts as a recipe, in which you state which files are involved, what settings you want to use, etc. And, then you simply use 'make build' to build your project, instead of doing everything manually.

It also allows you to implement your own 'commands', for example:
- make build -> builds the project
- make clean -> removes all object files and executables
- make test -> builds the tests of the project
...

Here's an old example of a makefile that I used:

#COMPILER/LINKER
CC=g++
CFLAGS=-c -O3
LDFLAGS=

#SOURCES
SOURCES= ./include/sharedlib/EasyImage/EasyImage.cc \
./include/sharedlib/iniConfiguration/ini_configuration.cc \
./include/sharedlib/lparser/lparser.cc \
./include/sharedlib/others/conversions.cc \
./include/sharedlib/vector/vector.cc \
...


#OBJECTS
OBJECTS=$(SOURCES:.cc=.o)

#EXECUTABLE
EXECUTABLE=engine

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cc.o:
$(CC) $(CFLAGS) $< -o $@

#CLEAN: OBJECTS
clean:
rm -rf $(OBJECTS)

cleanall:
rm -rf $(OBJECTS) $(EXECUTABLE)


Now, if someone wants to build your project or do other stuff, he/she just has to use 'make', 'make clean', ...

cmake is a more modern version and portable version of make, and has some built-in features:
- automatically detects which files have to be recompiled, and which don't
- detection for whether or not a certain library is installed or available
- cleaner syntax, with recursive cmake files that allow for easy plug-and-use
- etc.

So, I would recommend taking a look at cmake, and doing the tutorial on their website.

thank you very much—this helped me better understand what i was doing when i was building the libraries.

thanks to you guys I have managed to build, compile and link libraries for the first time! it took me forever to figure out the process for xcode but now the example opengl code runs and I can finally code.



here is a good make tutorial I found.
The harder it becomes, the more you should focus on the basics.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
July 06 2015 19:49 GMT
#12928
On July 03 2015 17:50 sabas123 wrote:
Show nested quote +
On July 03 2015 11:25 Blisse wrote:
On July 03 2015 00:33 netherh wrote:
On July 02 2015 18:13 Blisse wrote:
Not really. Foreach loops are backed by Iterators anyways.

The language is Java if that helps.


What does your profiler say about what's taking up all the time?


the nested for loops costs about as much as the contains operations

turns out it was probably the algorithm efficiency, nested for loops are bad. we figured out a more effective solution, i'll share after the deadline passes if y'all are interested because it's actually pretty neat

You made me curious, so please share it


biggerNeighbours is an adjacency list where all the values in the adjacency list have larger values than the vertex

i.e.

1 -> 2 3 4 5
2 -> 3 4 5

not 2 -> 1 3 4 5

the sorted ordering means we can use two "pointers" to find all the common elements, which would be more space-efficient than nested for loops or hashing. hashing is what we had before and is theoretically faster, but not in reality.


private static List<Triangle> enumerateTriangles(final List<Integer>[] biggerNeighbours, int initialPosition, int step) {
final List<Triangle> triangles = new ArrayList<Triangle>();

for (int smallVertex = initialPosition; smallVertex < biggerNeighbours.length; smallVertex += step) {

List<Integer> smallNeighbours = biggerNeighbours[smallVertex];

for (int mediumVertex : smallNeighbours) {

// from sorted ordering and pre-processing, all elements in smallNeighbours are larger than smallVertex

List<Integer> mediumNeighbours = biggerNeighbours[mediumVertex];

// small and medium are sorted min->max
// iterate two pointers backwards from max->min searching for equal elements

Integer i_s = smallNeighbours.size()-1;
Integer i_m = mediumNeighbours.size()-1;

while (i_s >= 0 && i_m >= 0) {

final int check_s = smallNeighbours.get(i_s);
final int check_m = mediumNeighbours.get(i_m);

if (check_m <= smallVertex || check_s <= mediumVertex) {
break;
}

if (check_s < check_m) {
--i_m;
} else if (check_s > check_m) {
--i_s;
} else {
triangles.add(new Triangle(smallVertex, mediumVertex, check_m));
--i_s;
--i_m;
}
}
}
}

return triangles;
}

There is no one like you in the universe.
WoolySheep
Profile Blog Joined October 2010
Canada82 Posts
July 06 2015 22:31 GMT
#12929
Hey guys,

I have a bunch of questions for you, but I think I will just ramble so you can get some context. I'll bold my questions in my ramble.

About me:
I am a Java/C++ developer and have dabbled in HTML and CCS, JavaScript off and on. I really enjoy writing code, but I know a lot of companies use frameworks, drag and drop, etc.

Goals:
I'd like to get into web development and mobile development, but am having trouble finding a natural progression in this field.
I'd also like to maintain my own website. Currently made one on wordpress but the free version only lets you pick one type of font?

Can anyone recommend the natural progression I should be taking? I found a C# course (this may have no relevance) on Edx that I will probably take up and I just went through the first 3 projects on Dash. I really enjoyed Dash.

When I look at job postings for front end developers or android developers, there are so many languages, libraries and frameworks thrown around it makes my head spin and I just decide to go play a video game instead.

here is an example requirements I found for a front-end developer:

+ Show Spoiler +
Familiarity with open source CMS (Drupal, WordPress, Joomla)
Understanding of Object Oriented Programming (PHP, Java, GO)
HTML 5
CSS3
CSS Frameworks (Bootstrap, Foundation, Pure, Gumby)
JavaScript MVC Frameworks (Backbone, Angular, Ember)
JavaScript Libraries (Underscore, Lo-Dash, jQuery, Q)
NodeJS (Express, CommonJS)
Project build tools (Gulp, Grunt, Maven)

I've only used JavaScript and JQuery (minutely) before.


Here is an example of the requirements for an Android developer:
+ Show Spoiler +

Experience programming in Java
Experience developing Android native applications and/or libraries are a requirement. A portfolio including source code and screenshots from publicly available projects is ideal
Knowledge of the Android API, in particular UI implementation to comply with a strict design, is a requirement
Experience programming in other languages aside from Java. Particularly interesting: C++, Scala/Groovy, Haskell, Go, Python

Assets

Knowing how to design and architect scalable software is a major asset, ie: inheritance, type safety, design patterns, threading and synchronization, modularity, and automated unit tests
Experience with cross-platform mobile frameworks such as Appcelerator Titanium and PhoneGap
Some experience programming in Java on non-Android platforms
Some formal education in the IT sector

Again, I have experience in Java, as well as a formal education, but I have not heard of half the stuff they list!


If anyone could provide links or a natural progression into these things I would greatly appreciate it.
Acrofales
Profile Joined August 2010
Spain18280 Posts
July 06 2015 23:48 GMT
#12930
From Java to Android is about as natural a progression as it gets. Just download the Android Studio and start programming. It's about as easy a transition as I can think of (I did it without any training). I don't program for iOS, but I believe objective c is pretty easy to pick up if you know c++ or c#.

Web: forget about specific languages, because nobody cares and they change every few months anyway. Learn that on the job. Pick one framework and learn how to separate model-view-controller properly. Oh, and if you want front end, learn Javascript well, and CSS 3.
WoolySheep
Profile Blog Joined October 2010
Canada82 Posts
July 06 2015 23:57 GMT
#12931
On July 07 2015 08:48 Acrofales wrote:
From Java to Android is about as natural a progression as it gets. Just download the Android Studio and start programming. It's about as easy a transition as I can think of (I did it without any training). I don't program for iOS, but I believe objective c is pretty easy to pick up if you know c++ or c#.

Web: forget about specific languages, because nobody cares and they change every few months anyway. Learn that on the job. Pick one framework and learn how to separate model-view-controller properly. Oh, and if you want front end, learn Javascript well, and CSS 3.


Thanks. I figured Android programming would be easiest based on java background.
METATERREN
Profile Blog Joined June 2015
71 Posts
July 07 2015 00:11 GMT
#12932
Help!

I need to automate the following:

Contents of an email generated from survey information are placed into a certain table of my access database.

What's it take to make a thing like that?
@METATERREN
Chocolate
Profile Blog Joined December 2010
United States2350 Posts
Last Edited: 2015-07-07 00:26:49
July 07 2015 00:22 GMT
#12933
I would write a quick script (since they are emails, I would look into python and its requests library) that scans a file for the sequence of words before a keyword, For example, in

What is your name? Bob
What's your favorite color? Red

You are interested in the answers, Bob and red, so tell your script to save the words after name and color. Then, when you have all the results from an individual survey saved, have the script execute something in SQL to put the information in the database.

Hopefully that makes sense. Without knowing specific details about the survey information, format, and database, that's the best I could think of.
fmod
Profile Blog Joined November 2013
Cayman Islands330 Posts
July 07 2015 00:54 GMT
#12934
I recommend premake as a build tool over cmake, if only for it being completely lua instead of cmake's horrible scripting language.
I don't particularly like you.
METATERREN
Profile Blog Joined June 2015
71 Posts
Last Edited: 2015-07-07 01:25:15
July 07 2015 01:24 GMT
#12935
On July 07 2015 09:22 Chocolate wrote:
I would write a quick script (since they are emails, I would look into python and its requests library) that scans a file for the sequence of words before a keyword, For example, in

What is your name? Bob
What's your favorite color? Red

You are interested in the answers, Bob and red, so tell your script to save the words after name and color. Then, when you have all the results from an individual survey saved, have the script execute something in SQL to put the information in the database.

Hopefully that makes sense. Without knowing specific details about the survey information, format, and database, that's the best I could think of.


Thanks for your reply. I have a question. How would the python script navigate the email? Would it be able to look at this information through an email account on a webmail service (say, gmail) that is dedicated to the receipt of these survey questions? I am probably going to have to pay someone to develop this script, and I am trying to figure out my bearings and what kind of cost it will be to me to have the job done.
@METATERREN
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
July 07 2015 04:55 GMT
#12936
On July 07 2015 09:54 fmod wrote:
I recommend premake as a build tool over cmake, if only for it being completely lua instead of cmake's horrible scripting language.


Cmake is more widely in use with large FOSS and Unix tools (LLVM, for example), so it's well understood by a wider variety of people. It's pretty good for a crufty wrapper on opaque tooling.
Any sufficiently advanced technology is indistinguishable from magic
Manit0u
Profile Blog Joined August 2004
Poland17738 Posts
Last Edited: 2015-07-07 10:51:47
July 07 2015 10:51 GMT
#12937
On July 07 2015 10:24 METATERREN wrote:
Show nested quote +
On July 07 2015 09:22 Chocolate wrote:
I would write a quick script (since they are emails, I would look into python and its requests library) that scans a file for the sequence of words before a keyword, For example, in

What is your name? Bob
What's your favorite color? Red

You are interested in the answers, Bob and red, so tell your script to save the words after name and color. Then, when you have all the results from an individual survey saved, have the script execute something in SQL to put the information in the database.

Hopefully that makes sense. Without knowing specific details about the survey information, format, and database, that's the best I could think of.


Thanks for your reply. I have a question. How would the python script navigate the email? Would it be able to look at this information through an email account on a webmail service (say, gmail) that is dedicated to the receipt of these survey questions? I am probably going to have to pay someone to develop this script, and I am trying to figure out my bearings and what kind of cost it will be to me to have the job done.


How would the survey work? People fill out the form on the web and the email is being sent to the server? If so, it's really easy since you can simply send the data as an attachment (or just drop it into the mail) formatted in yaml, xml, json or whatever. Then make the script to parse e-mails, save data in the db and move them to the 'parsed' directory in the mailbox or something. All you need after that is a simple cron that'll launch the script every now and then to parse the inbox.
Time is precious. Waste it wisely.
Isualin
Profile Joined March 2011
Germany1903 Posts
Last Edited: 2015-07-08 08:48:09
July 08 2015 08:44 GMT
#12938
I need to implement a subscription model, can you guys give me suggestions.
1-)There are multiple subscribers and a controller. Subscribers might join or leave the network at any time.
2-)Each node works on a different machine.
3-)They will communicate via rest requests.
4-)Controller will send a post request to all active subscribers to start a remote job on those machines. This request has no parameter or body, it is just a signal.

I thought of two ways to accomplish this.
First one is to send alive signals to controller from subscribers on launch. Wait and retry until a signal is sent succesfully. Then before sending update request from controller, check subscribers to see if they are alive and update the active subscribers list.

The second method i thought of is to send heartbeat signals from subscribers every few seconds. Store 'subscriber_ip:port' : 'last heartbeat date' as a map on the controller. And while updating subscribers, check that map to find active subscribers in last X seconds.

There is also a problem of sending subscribers ip:port/contextRoot to controller to get the update signal from controller later. I am open to all suggestions.
| INnoVation | The literal god TY | ByuNjwa | LRSL when? |
Gowerly
Profile Blog Joined July 2011
United Kingdom916 Posts
July 08 2015 13:14 GMT
#12939
Is there any reason you need to do this yourself? Something like RabbitMQ might be able to handle this kind of thing for you.
I will reduce you to a series of numbers.
Isualin
Profile Joined March 2011
Germany1903 Posts
Last Edited: 2015-07-08 14:04:06
July 08 2015 13:59 GMT
#12940
On July 08 2015 22:14 Gowerly wrote:
Is there any reason you need to do this yourself? Something like RabbitMQ might be able to handle this kind of thing for you.

I am already consuming an activemq queue on subscribers so it is a good idea. I might broadcast to another topic on activemq by controller for this.
Thanks by the way. This was the exactly reply i was hoping to get.
| INnoVation | The literal god TY | ByuNjwa | LRSL when? |
Prev 1 645 646 647 648 649 1032 Next
Please log in or register to reply.
Live Events Refresh
GSL
09:30
2026 Season 1: Ro12 Group A
Zoun vs SolarLIVE!
Rogue vs TBD
Percival vs TBD
IntoTheiNu 318
Ryung 304
CranKy Ducklings SOOP74
Rex15
LamboSC212
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Ryung 304
BRAT_OK 34
Rex 15
LamboSC2 12
StarCraft: Brood War
Calm 10803
Sea 805
Jaedong 628
Leta 503
Hyuk 372
Mini 315
Stork 200
Soma 193
actioN 155
EffOrt 135
[ Show more ]
ProTech127
hero 101
Dewaltoss 93
Light 91
firebathero 76
ZerO 68
Snow 64
Rush 56
sSak 55
Pusan 54
Shinee 53
Aegong 43
Last 37
soO 33
JYJ 24
Bale 20
IntoTheRainbow 12
ajuk12(nOOB) 3
[sc1f]eonzerg 2
ToSsGirL 1
Dota 2
XaKoH 539
resolut1ontv 246
ODPixel58
XcaliburYe10
Counter-Strike
olofmeister2317
shoxiejesuss1368
allub338
x6flipin222
Other Games
XBOCT282
crisheroes143
Mew2King59
ZerO(Twitch)9
Organizations
Other Games
gamesdonequick631
StarCraft: Brood War
Kim Chul Min (afreeca) 434
Dota 2
PGL Dota 2 - Main Stream94
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota233
League of Legends
• Jankos1029
• TFBlade532
• Stunt390
Upcoming Events
Replay Cast
13h 47m
GSL
23h 17m
Cure vs TriGGeR
ByuN vs Bunny
KCM Race Survival
23h 47m
Big Gabe
1d 1h
Replay Cast
1d 13h
Replay Cast
1d 22h
Escore
1d 23h
OSC
2 days
Replay Cast
2 days
Replay Cast
2 days
[ Show More ]
RSL Revival
2 days
IPSL
3 days
Ret vs Art_Of_Turtle
Radley vs TBD
BSL
3 days
Replay Cast
3 days
RSL Revival
3 days
uThermal 2v2 Circuit
4 days
BSL
4 days
IPSL
4 days
eOnzErG vs TBD
G5 vs Nesh
Replay Cast
4 days
Wardi Open
4 days
Afreeca Starleague
4 days
Jaedong vs Light
Monday Night Weeklies
5 days
Replay Cast
5 days
Sparkling Tuna Cup
5 days
Afreeca Starleague
5 days
Snow vs Flash
GSL
6 days
Liquipedia Results

Completed

Proleague 2026-04-28
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

Escore Tournament S2: W5
KK 2v2 League Season 1
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
RSL Revival: Season 5
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.